Mod_cluster
Mod_cluster management can be carried out using the following CLI operations:
- List the connected proxies:
/subsystem=modcluster:list-proxies
- Show proxies' information:
/subsystem=modcluster:read-proxies-info
- Add a proxy to the cluster:
/subsystem=modcluster:add-proxy(host= CP15-022, port=9999)
- Remove a proxy:
/subsystem=modcluster:remove-proxy(host=CP15-022, port=9999)
- Add a web context:
/subsystem=modcluster:enable-context(context=/myapp, virtualhost=default-host)
- Disable a web context:
/subsystem=modcluster:disable-context(context=/myapp, virtualhost=default-host)
- Stop a web context:
/subsystem=modcluster:stop-context(context=/myapp, virtualhost=default-host, waittime=50)