예제 #1
0
 def _update_config(self):
     node_list = [node.name for node in list(self.nodes.values())]
     seed_list = self.get_seeds()
     filename = os.path.join(self.__path, self.name, 'cluster.conf')
     config_map = {
         'name': self.name,
         'nodes': node_list,
         'seeds': seed_list,
         'partitioner': self.partitioner,
         'install_dir': self.__install_dir,
         'config_options': self._config_options,
         'dse_config_options': self._dse_config_options,
         'log_level': self.__log_level,
         'use_vnodes': self.use_vnodes,
         'datadirs': self.data_dir_count,
         'environment_variables': self._environment_variables
     }
     extension.append_to_cluster_config(self, config_map)
     with open(filename, 'w') as f:
         yaml.safe_dump(config_map, f)
예제 #2
0
파일: cluster.py 프로젝트: mikefero/ccm
 def _update_config(self):
     node_list = [node.name for node in list(self.nodes.values())]
     seed_list = self.get_seeds()
     filename = os.path.join(self.__path, self.name, 'cluster.conf')
     config_map = {
         'name': self.name,
         'nodes': node_list,
         'seeds': seed_list,
         'partitioner': self.partitioner,
         'install_dir': self.__install_dir,
         'config_options': self._config_options,
         'dse_config_options': self._dse_config_options,
         'log_level': self.__log_level,
         'use_vnodes': self.use_vnodes,
         'datadirs': self.data_dir_count,
         'environment_variables': self._environment_variables
     }
     extension.append_to_cluster_config(self, config_map)
     with open(filename, 'w') as f:
         yaml.safe_dump(config_map, f)