Skip to content

Instantly share code, notes, and snippets.

@daverigby
Last active December 9, 2021 16:07
Show Gist options
  • Save daverigby/f630ca6300544540f36209ba6b998529 to your computer and use it in GitHub Desktop.
Save daverigby/f630ca6300544540f36209ba6b998529 to your computer and use it in GitHub Desktop.
Useful ns_server REST commands
  • Change num_writer_threads from command-line
curl --user Administrator:asdasd -X POST --data "num_writer_threads=disk_io_optimized" http://localhost:9000/pools/default/settings/memcached/global

(Can also use num_reader_threads, and specify an exact number)

  • Change number of shards from command-line:
curl -i -u Administrator:asdasd --data 'ns_bucket:update_bucket_props("default", [{extra_config_string, "max_num_shards=64"}]).' http://localhost:9000/diag/eval
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment