Loading TOC...

MarkLogic 12 EA 1 Product Documentation
admin.databaseRecurringMergeBlackout

admin.databaseRecurringMergeBlackout(
   limit as Number,
   merge-priority as String,
   days as String[],
   start-time as (Number|String)?,
   end-time as (Number|String)?,
   duration as xs.duration?
) as element(db.mergeBlackout)

Summary

This function constructs a merge-blackout specification.

Parameters
limit The maximum number of megabytes for a merge.
merge-priority The CPU scheduler priority for merges. Must be one of normal or lower.
days The day(s) of the week. Must be a sequence of zero or more of monday, tuesday, wednesday, thursday, friday, saturday, sunday.
start-time A time for the merge blackout to start.
end-time A time for the merge blackout to end.
duration The amount of time for the blackout to last.

Example

  
  const admin = require('/MarkLogic/admin.xqy');
  admin.databaseRecurringMergeBlackout(500, "lower", "monday",
  xs.time("09:45:00"), xs.time("11:45:00"), [] )

     //returns the mergeBlackout specification.
     //Use admin.saveConfiguration to save these changes. 
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.