Created
August 21, 2017 07:40
-
-
Save ableasdale/d36507c919ccc6cb0888ad21b81ad9d6 to your computer and use it in GitHub Desktop.
MarkLogic: Database Replication Trace Events
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "1.0-ml"; | |
import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; | |
declare variable $config := admin:get-configuration(); | |
let $config := admin:group-add-trace-event($config, admin:group-get-id($config, "Default"), | |
( | |
admin:group-trace-event("Forest SetMasterInfo"), | |
admin:group-trace-event("Forest Mount"), | |
admin:group-trace-event("Forest Replicate Frame"), | |
admin:group-trace-event("Forest Replicate"), | |
admin:group-trace-event("Forest SetCurrentMasterFSN"), | |
admin:group-trace-event("Forest State"), | |
admin:group-trace-event("Forest Checkpoint"), | |
admin:group-trace-event("ForestReplicateCompare") | |
) | |
) | |
return admin:save-configuration($config) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment