> On Tuesday, July 24, 2012 12:38:11 PM UTC-4, Michael Papile wrote:
> >
> >   In the default history I see "By default, the history is an in-memory
> > history (see Ruote::DefaultHistory) (and it is worthless when there are
> > multiple workers)."  Now I am using the redis storage in order to run
> > multiple workers.  I am not interested in the large amount of history made.
> >  Does this just mean that *History* will not work for multiple workers,
> > or does this mean that other information critical to the ruote workflow
> > will be affected?  I do not mind if the history does not work as I am not
> > interested in it.

Hello Michael,

so I tented a rewrite:

  
https://github.com/jmettraux/ruote/blob/18d510df60801a83558ee330e7b9e34abfdf8077/lib/ruote/log/default_history.rb#L34-41

It doesn't mean that History will not work for multiple workers. It means
that a particular, default (in-memory) history instance will only know the
history for its worker. If you want the whole history you'll have to concat
the histories from the instances of DefaultHistory next to each worker.

History is just keeping copies of msgs (pieces of workflow execution) after
they got processed by a message. It is not critical information, losing it
will not having currently and future running workflows (unless you wrote some
kind of participant that uses history data when dealing with workitems).

I'd suggest that, since you don't care about history, you leave it like that.

If you're worried about those 1000 msgs slots using too much memory, please
tell me and I'll show you how to remove the history altogether (I just
realized that although it was crossed as done on my todo, there is no
Dashboard#remove_service method).

On Tue, Jul 24, 2012 at 09:45:24AM -0700, Michael Papile wrote:
>
> Sorry just an addition to this:  In summary what would be the way to have a
> multiple worker capable store that is not blowing up with excess data that
> is not essential to the ruote engine/workers?

Simply use the default in-memory history. The history will go to memory,
pegged at the 1'000 most recent msgs.

If you have any other question or have a suggestion for a better rdoc above,
please fire.


Best regards,

--
John Mettraux - http://lambda.io/jmettraux

-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en

Reply via email to