Powered by Zoomin Software. For more details please contactZoomin

Administrate MarkLogic Server

Resizing Partitions

  • Last Updated: April 15, 2026
  • 1 minute read
    • MarkLogic Server
    • Version 11.0
    • Documentation

You can increase or decrease the number of forests in a partition. Once the resize operation has completed, the documents in the partition forests will be rebalanced for even distribution.

For example, to resize the 2011 range partition up to five forests, use this code:

$ cat resize-partition.xml
<resize xmlns="http://marklogic.com/manage">
  <forests-per-host>5</forests-per-host>
  <hosts>
    <host>MyHost</host>
  </hosts>
</resize>
$ curl --anyauth --user user:password -X PUT \
-d @resize-partition.xml -H 'Content-type: application/xml' \
http://MyHost:8002/manage/v2/databases/Documents/partitions/2011

In addition to resizing your partition, you can migrate your partition to another host by specifying a different host in the payload. Additionally, you can move the partition to a different storage tier (such as local-to-shared) by specifying one of the migration options described in Migrating Forests and Partitions.

Note:
If you resize partitions for databases configured for database replication, first resize the replica partitions before resizing the master partitions.

TitleResults for “How to create a CRG?”Also Available inAlert