[SERVER-2739] Allow chunkSize to be changed dynamically Created: 11/Mar/11  Updated: 02/May/14  Resolved: 02/May/14

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Kyle Banker Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-4208 New command: sh.resizeChunkSize() Closed
Participants:

 Description   

It's odd that chunk size is initially set when the first mongos is started. It's also strange the the --chunkSize flag can't be used to change chunk size once it's been set.

I propose removing the --chunkSize flag from mongos altogether. Then have some command to mechanism for setting chunk size if users so desire it. e.g.:

db.runCommand(

{setchunksize: 128}

)



 Comments   
Comment by Scott Hernandez (Inactive) [ 05/Apr/11 ]

It would be nice if a command existed and it applied to mongos (the nodes already running).

Comment by Mathias Stearn [ 05/Apr/11 ]

There already is a way to set it:

use config
db.settings.save({_id:'chunksize', value:123})

Generated at Thu Feb 08 03:01:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.