mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 11:02:08 +00:00
add option allow_experimental_cluster_discovery
This commit is contained in:
parent
ceec643f90
commit
96a0371eca
@ -549,6 +549,8 @@ class IColumn;
|
||||
/** Experimental functions */ \
|
||||
M(Bool, allow_experimental_funnel_functions, false, "Enable experimental functions for funnel analysis.", 0) \
|
||||
M(Bool, allow_experimental_nlp_functions, false, "Enable experimental functions for natural language processing.", 0) \
|
||||
\
|
||||
M(Bool, allow_experimental_cluster_discovery, false, "Enable automatic cluster discovery via ZooKeeper", 0) \
|
||||
|
||||
// End of COMMON_SETTINGS
|
||||
// Please add settings related to formats into the FORMAT_FACTORY_SETTINGS and move obsolete settings to OBSOLETE_SETTINGS.
|
||||
|
@ -2210,7 +2210,7 @@ void Context::setClustersConfig(const ConfigurationPtr & config, bool enable_dis
|
||||
{
|
||||
std::lock_guard lock(shared->clusters_mutex);
|
||||
|
||||
if (enable_discovery && !shared->cluster_discovery)
|
||||
if (/* getSettingsRef().allow_experimental_cluster_discovery && */ enable_discovery && !shared->cluster_discovery)
|
||||
{
|
||||
shared->cluster_discovery = std::make_unique<ClusterDiscovery>(*config, getGlobalContext());
|
||||
}
|
||||
|
12
tests/integration/test_cluster_discovery/config/settings.xml
Normal file
12
tests/integration/test_cluster_discovery/config/settings.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<clickhouse>
|
||||
<profiles>
|
||||
<default>
|
||||
<allow_experimental_cluster_discovery>1</allow_experimental_cluster_discovery>
|
||||
</default>
|
||||
</profiles>
|
||||
<users>
|
||||
<default>
|
||||
<profile>default</profile>
|
||||
</default>
|
||||
</users>
|
||||
</clickhouse>
|
@ -9,6 +9,7 @@ nodes = [
|
||||
cluster.add_instance(
|
||||
f'node{i}',
|
||||
main_configs=['config/config.xml'],
|
||||
user_configs=['config/settings.xml'],
|
||||
stay_alive=True,
|
||||
with_zookeeper=True
|
||||
) for i in range(5)
|
||||
|
Loading…
Reference in New Issue
Block a user