flexrep.upgradeAppserver( cfg as element(configuration), ids as (Number|String)[] ) as element(configuration)
This function is used by appserver upgrade code. Users shouldn't typically need to call this function directly.
Parameters | |
---|---|
cfg | The replication configuration to use to upgrade the App Server. |
ids | The ID of the App Server(s)
to be upgraded. Typically, this is the result of an
admin.appserverGetId
call. |
Use this function to upgrade a package created on MarkLogic 7, to MarkLogic 8 settings, and apply those settings to a MarkLogic 8 cluster.
const flexrep = require('/MarkLogic/flexrep'); const admin = require('/MarkLogic/admin'); let cfg = admin.getConfiguration(); let ids = ( admin.appserverGetId(cfg, xdmp.group("Default"), "FlexRep-foo"), admin.appserverGetId(cfg, xdmp.group("Default"), "FlexRep-bar") ); admin.saveConfiguration( flexrep.upgradeAppserver(cfg, ids));
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.