{
  "id": "shard-placement",
  "title": "Configure shard placement",
  "url": "https://redis.io/docs/latest/operate/rs/8.0/databases/configure/shard-placement/",
  "summary": "Configure shard placement to improve performance.",
  "content": "In Redis Software, the location of master and replica shards on the cluster nodes can impact the database and node performance.\nMaster shards and their corresponding replica shards are always placed on separate nodes for data resiliency.\nThe [shard placement policy](https://redis.io/docs/latest/operate/rs/databases/memory-performance/shard-placement-policy.md) helps to maintain optimal performance and resiliency.\n\nIn addition to the shard placement policy, considerations that determine shard placement are:\n\n- Separation of master and replica shards\n- Available persistence and Auto Tiering storage\n- [Rack-zone awareness](https://redis.io/docs/latest/operate/rs/clusters/configure/rack-zone-awareness)\n- Memory available to host the database when fully populated\n\nThe shard placement policies are:\n\n- `dense` - Place as many shards as possible on the smallest number of nodes to reduce the latency between the proxy and the database shards;\n    Recommended for Redis on RAM databases to optimize memory resources\n- `sparse` - Spread the shards across as many nodes in the cluster as possible to spread the traffic across cluster nodes;\n    Recommended for databases with Auto Tiering enabled to optimize disk resources\n\nWhen you create a Redis Software cluster, the default shard placement policy (`dense`) is assigned to all databases that you create on the cluster.\n\nYou can:\n\n- Change the default shard placement policy for the cluster to `sparse` so that the cluster applies that policy to all databases that you create\n- Change the shard placement policy for each database after the database is created\n\n## Default shard placement policy\n\nWhen you create a new cluster, the cluster configuration has a `dense` default shard placement policy.\nWhen you create a database, this default policy is applied to the new database.\n\nTo see the current default shard placement policy, run `rladmin info cluster`:\n\n![images/rs/shard_placement_info_cluster.png](https://redis.io/docs/latest/images/rs/shard_placement_info_cluster.png)\n\nTo change the default shard placement policy so that new databases are created with the `sparse` shard placement policy, run:\n\n```sh\nrladmin tune cluster default_shards_placement [ dense | sparse ]\n```\n\n## Shard placement policy for a database\n\nTo see the shard placement policy for a database in `rladmin status`.\n\n![images/rs/shard_placement_rladmin_status.png](https://redis.io/docs/latest/images/rs/shard_placement_rladmin_status.png)\n\nTo change the shard placement policy for a database, run:\n\n```sh\nrladmin tune db { db:\u003cID\u003e | \u003cdatabase-name\u003e } shards_placement { dense | sparse }\n```\n",
  "tags": ["docs","operate","rs"],
  "last_updated": "2026-07-23T12:00:25-05:00"
}
