diff --git a/src/backend/distributed/shared_library_init.c b/src/backend/distributed/shared_library_init.c index 0f4a59dfb..1f80eb45e 100644 --- a/src/backend/distributed/shared_library_init.c +++ b/src/backend/distributed/shared_library_init.c @@ -580,6 +580,17 @@ RegisterCitusConfigVariables(void) GUC_STANDARD, NULL, NULL, NULL); + DefineCustomBoolVariable( + "citus.check_available_space_before_move", + gettext_noop("When enabled will check free disk space before a shard move"), + gettext_noop( + "Free disk space will be checked when this setting is enabled before each shard move."), + &CheckAvailableSpaceBeforeMove, + true, + PGC_USERSET, + GUC_NO_SHOW_ALL, + NULL, NULL, NULL); + DefineCustomStringVariable( "citus.cluster_name", gettext_noop("Which cluster this node is a part of"), @@ -664,6 +675,20 @@ RegisterCitusConfigVariables(void) GUC_UNIT_MS, NULL, NULL, NULL); + DefineCustomRealVariable( + "citus.desired_percent_disk_available_after_move", + gettext_noop( + "Sets how many percentage of free disk space should be after a shard move"), + gettext_noop( + "This setting controls how much free space should be available after a shard move." + "If the free disk space will be lower than this parameter, then shard move will result in" + "an error."), + &DesiredPercentFreeAfterMove, + 10.0, 0.0, 100.0, + PGC_SIGHUP, + GUC_STANDARD, + NULL, NULL, NULL); + DefineCustomRealVariable( "citus.distributed_deadlock_detection_factor", gettext_noop("Sets the time to wait before checking for distributed " @@ -955,31 +980,6 @@ RegisterCitusConfigVariables(void) 0, NULL, NULL, NULL); - DefineCustomBoolVariable( - "citus.check_available_space_before_move", - gettext_noop("When enabled will check free disk space before a shard move"), - gettext_noop( - "Free disk space will be checked when this setting is enabled before each shard move."), - &CheckAvailableSpaceBeforeMove, - true, - PGC_USERSET, - GUC_NO_SHOW_ALL, - NULL, NULL, NULL); - - DefineCustomRealVariable( - "citus.desired_percent_disk_available_after_move", - gettext_noop( - "Sets how many percentage of free disk space should be after a shard move"), - gettext_noop( - "This setting controls how much free space should be available after a shard move." - "If the free disk space will be lower than this parameter, then shard move will result in" - "an error."), - &DesiredPercentFreeAfterMove, - 10.0, 0.0, 100.0, - PGC_SIGHUP, - GUC_STANDARD, - NULL, NULL, NULL); - DefineCustomBoolVariable( "citus.enable_cost_based_connection_establishment", gettext_noop("When enabled the connection establishment times " @@ -1079,6 +1079,19 @@ RegisterCitusConfigVariables(void) GUC_UNIT_BYTE | GUC_NO_SHOW_ALL, NULL, NULL, NULL); + DefineCustomStringVariable( + "citus.local_hostname", + gettext_noop("Sets the hostname when connecting back to itself."), + gettext_noop("For some operations nodes, mostly the coordinator, connect back to " + "itself. When configuring SSL certificates it sometimes is required " + "to use a specific hostname to match the CN of the certificate when " + "verify-full is used."), + &LocalHostName, + "localhost", + PGC_SUSET, + GUC_STANDARD, + NULL, NULL, NULL); + DefineCustomIntVariable( "citus.local_shared_pool_size", gettext_noop( @@ -1718,19 +1731,6 @@ RegisterCitusConfigVariables(void) GUC_STANDARD, NULL, NULL, NULL); - DefineCustomStringVariable( - "citus.local_hostname", - gettext_noop("Sets the hostname when connecting back to itself."), - gettext_noop("For some operations nodes, mostly the coordinator, connect back to " - "itself. When configuring SSL certificates it sometimes is required " - "to use a specific hostname to match the CN of the certificate when " - "verify-full is used."), - &LocalHostName, - "localhost", - PGC_SUSET, - GUC_STANDARD, - NULL, NULL, NULL); - DefineCustomBoolVariable( "citus.writable_standby_coordinator", gettext_noop("Enables simple DML via a streaming replica of the coordinator"),