Search code examples
scriptingliferaycluster-computingliferay-7.1

Executing a Liferay script from the specified node


I want to execute a script from the Liferay script console, but I'm running a clustered setup, and I need the script to run from the specified node. Is there a way to do this?

The reason for this is to troubleshoot a network issue, which I can also do by ssh'ing into the node itself. Still, I'd like to know if this is possible because it would save us a lot of time.


Solution

  • So apparently the script is invoked from the node you're currently connected to. Connecting to a specific node depends on your setup, but seeing which node you're connected to you can put the following in your portal-ext.properties according to this post:

    web.server.display.node=true