Skip to content

Commit e2b1d28

Browse files
committed
[#23363] Changing the default gflags of YSQL memory configuration.
Summary: Updating the default gflags of yugabyted to use use_memory_defaults_optimized_for_ysql to use memory configuration optimised for YSQL workloads. Test Plan: Manual Tests Reviewers: sgarg-yb, djiang Reviewed By: djiang Subscribers: djiang, yugabyted-dev Differential Revision: https://phorge.dev.yugabyte.com/D38085
1 parent 6556498 commit e2b1d28

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/yugabyted

+3-2
Original file line numberDiff line numberDiff line change
@@ -3213,6 +3213,7 @@ class ControlScript(object):
32133213
"--placement_cloud={}".format(self.configs.saved_data.get("cloud_provider")),
32143214
"--placement_region={}".format(self.configs.saved_data.get("cloud_region")),
32153215
"--placement_zone={}".format(self.configs.saved_data.get("cloud_zone")),
3216+
"--use_memory_defaults_optimized_for_ysql=true",
32163217
]
32173218

32183219
if fault_tolerance == "region":
@@ -3244,8 +3245,9 @@ class ControlScript(object):
32443245
os.path.join(self.configs.saved_data.get("data_dir"), "master-info")),
32453246
"--master_enable_metrics_snapshotter=true",
32463247
"--webserver_port={}".format(self.configs.saved_data.get("master_webserver_port")),
3247-
"--default_memory_limit_to_ram_ratio=0.35",
32483248
"--instance_uuid_override={}".format(self.configs.saved_data.get("master_uuid")),
3249+
"--enforce_tablet_replica_limits=true",
3250+
"--split_respects_tablet_replica_limits=true",
32493251
]
32503252

32513253
if self.configs.saved_data.get("secure"):
@@ -3340,7 +3342,6 @@ class ControlScript(object):
33403342
"--tserver_enable_metrics_snapshotter=true",
33413343
"--metrics_snapshotter_interval_ms=11000",
33423344
"--webserver_port={}".format(self.configs.saved_data.get("tserver_webserver_port")),
3343-
"--default_memory_limit_to_ram_ratio=0.6",
33443345
"--instance_uuid_override={}".format(self.configs.saved_data.get("tserver_uuid")),
33453346
"--start_redis_proxy=false",
33463347
"--placement_uuid={}".format(self.configs.saved_data.get("placement_uuid")),

0 commit comments

Comments
 (0)