MarkLogic: why does uninstalling the application server cause the cluster to restart?

Why does uninstalling the application server cause the cluster to restart? Are there any scenarios in which you can uninstall multiple applications and not run multiple restarts? For example, can I open a transaction, get the configuration, make several calls admin:appserver-delete(), save the new configuration, and then commit the transaction and only initiate one restart?

MarkLogic = 8.0-3.2 and 8.0-4.2, Linux = RedHat

+4
source share
1 answer

HTTP-, -, . - ( ) , , , , . - , , . .

, xquery, , , , , , , , . admin admin:save-configuration, .

:

let $config := admin:get-configuration()
let $config := admin:appserver-delete($config,
  admin:appserver-get-id($config, xdmp:group(), "app-serv1")
)
let $config := admin:appserver-delete($config,
  admin:appserver-get-id($config, xdmp:group(), "app-serv2")
)
let $config := admin:appserver-delete($config,
  admin:appserver-get-id($config, xdmp:group(), "app-serv3")
)
return admin:save-configuration($config)

, admin:appserver-delete , . , . , , . , , ..

!

+6

Source: https://habr.com/ru/post/1670434/


All Articles