[ 
http://jira.magnolia-cms.com/browse/MGNLSCH-15?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Danilo Ghirardelli updated MGNLSCH-15:
--------------------------------------

    Attachment: AbstractClusterLockCommand.java

If you are interested, I created the attached command, that guarantees the 
execution of a command (or better, a job) on a single cluster node, using 
Jackrabbit's clusterwise locks. The node on which the job will run is not 
forced, just the first one that gets the lock is the one that will run the job, 
the others will quietly skip.
There is a slight chance that the lock is not released if the node dies 
abruptly during the job execution, but forcing a timeout should solve the 
problem (unlike session locks, cluster locks are not automatically released). 
The point is that we should have a dedicated repository for jobs locks, maybe 
with auto-created nodes with the job name, that will be the lock paths. At the 
moment I used the jobs definition nodes in the config repo as lock paths.

> Allow tasks to specify cluster node on which to run in clustered 
> configurations
> -------------------------------------------------------------------------------
>
>                 Key: MGNLSCH-15
>                 URL: http://jira.magnolia-cms.com/browse/MGNLSCH-15
>             Project: Magnolia Scheduler Module
>          Issue Type: Improvement
>    Affects Versions: 1.3
>            Reporter: Jan Haderka
>            Priority: Major
>             Fix For: 1.4.x
>
>         Attachments: AbstractClusterLockCommand.java
>
>
> Right now when running Magnolia in fully clustered environment (i.e. with 
> clustered {{config}} workspace) scheduled tasks are launched on all nodes. 
> This leads to problems when such tasks include content modification and 
> locking. It should be possible to specify at which node such tasks should run 
> or at least say whether to run on all or only on one.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to