admin:database-foreign-replica-get-queue-size( $foreign-replica as element(db:foreign-replica) ) as xs:unsignedLong
This function returns the queue size for the number of fragments or frames in-flight during database replication.
Parameters | |
---|---|
foreign-replica | The element
returned by the admin:forest-foreign-replica or
admin:forest-get-foreign-replicas function that specifies the
configuration for the replica forest. |
During normal operation, this number applies to journal frames rather than fragments. The server will stop sending new frames once it has 10 unacknowledged frames. It will stop sending frames until it gets an acknowledgement for the oldest one.
xquery version "1.0-ml"; import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; let $cfg := admin:get-configuration() let $freplica := admin:database-get-foreign-replicas($cfg, xdmp:database("Documents")) return admin:database-foreign-replica-get-queue-size($freplica) (: returns the queue size of the foreign replica named "Documents":)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.