camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Camel File Cluster
Date Fri, 10 Jul 2015 06:23:27 GMT
Hi

I covered such a scenario in the upcoming Camel in Action 2 book in
chapter 12 with the new idempontent readLock option. That allows to
use a clustered idempotent impl to control the flow and allow
concurrent processing of files safely in a cluster.



On Thu, Jul 9, 2015 at 4:15 PM, Андрей Карев <andrew.karev@gmail.com> wrote:
> Hi!
>
> I'm developing app using camel and stuck with problem.
>
> I'm trying to build cluster with file consumer. They lokk the same
> directory on NAS and I want achieve the result when if one server fails,
> other continue processing files.
>
> From here:
> http://stackoverflow.com/questions/26066012/clustering-in-apache-camel-multiple-jvms-same-camelcontext
>
> I've read that File consumer can lock file and no other consumer can get
> this file. But on practice my 2 file consumers on different servers don't
> let each other delete files. And for all my files .camelLock are created.
>
> What is the best approach in my case? Should i write some balansing app or
> it's possible to make things work out of the box?
>
> my route:
>
> from(*"file:V:**\\folder1*
> *?exclusiveReadLockStrategy=#myReadLockStrategy&readLockCheckInterval=3000"*
> ).threads(10)
>         .to(*"sftp://user@server:22/camel/outCLUSTER?password=pwd"*);



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Mime
View raw message