admin.databaseForeignReplicaSetQueueSize( foreign-replica as element(db.foreignReplica), value as Number ) as element(db.foreignReplica)
This function sets the queue size for the number of fragments or frames in-flight during database replication.
http://marklogic.com/xdmp/privileges/admin/database
http://marklogic.com/xdmp/privileges/admin/database/{id}
http://marklogic.com/xdmp/privileges/admin/database/replication
http://marklogic.com/xdmp/privileges/admin/database/replication/{id}
const admin = require('/MarkLogic/admin.xqy'); const cfg = admin.getConfiguration() const freplica = admin.databaseGetForeignReplicas(cfg, xdmp.database("MyReplica")) admin.databaseForeignReplicaSetQueueSize(freplica, 20) //Sets the foreign replica queue size to 20 and returns the new configuration //element -- use admin.saveConfiguration to save the changes to the configuration //or pass the configuration to other Admin API functions to make other changes.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.