Tomcat Cluster Farm Deployment Attribute "watchDir"

I looked at the Tomcat 7 documentation to find out how clusters work.
The documentation says about the Deployer tag:

<Deployer className = "org.apache.catalina.ha.deploy.FarmWarDeployer"
                    tempDir = "/ tmp / war-temp /"
                    deployDir = "/ tmp / war-deploy /"
                    watchDir = "/ tmp / war-listen /"
                    watchEnabled = "false" />

But the documentation about this is very poor: http://tomcat.apache.org/tomcat-7.0-doc/config/cluster-deployer.html

I found something in the javadocs class http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/ha/deploy/FarmWarDeployer.html

What I cannot find is the watchEnabled attribute. Does anyone know this?

Greetings

+5
source share
3 answers

Here are some knowledge about this: - Deployer should be declared inside a section

  • watchDir is a directory in which you can put your delivery. The deployment process will begin here.

  • deployDir is the directory in which your application will be deployed (most likely webapps /)

  • and tempDir is the directory used by the server during deployment.

  • FarmWarDeployer is the only implementation I know. If you want to expand this option, perhaps you can set your own implementation

  • WatchEnabled should be set to true on your host node and false on other nodes. The application will be deployed from the host to other nodes.

,

+4

Tomcat watchEnabled=true. watchdir ( WAR ) , , FarmWarDeployer.

. .

+2

If you install watchEnabled=true, the instance starts WarWatcher.

WarWatchermonitors the folder for military files and checks if new files have appeared or are already updated, etc. You can also adjust the frequency of observer verification with FarmWarDeployer processDeployFrequency.

+1
source

All Articles