Map phase timeout
christian at basho.com
Mon Apr 8 04:27:05 EDT 2013
The best way to speed up the mapreduce job and get around the VM pool contention is to implement the mapreduce functions in Erlang.
Client Services Engineer
E-mail: christian at basho.com
Mobile: +44 7890 590 910
On 8 Apr 2013, at 08:20, Matt Black <matt.black at jbadigital.com> wrote:
> Thanks for the reply, Christian.
> The query itself has many map phases where a composite object is built up from related objects spread across many buckets.
> I was hoping there may be some kind of timeout I could adjust on a per-map phase basis - clutching at straws really.
> On 8 April 2013 17:14, Christian Dahlqvist <christian at basho.com> wrote:
> Without having access to the mapreduce functions you are running, I would assume that a mapreduce job both writing data to disk as well as deleting the written record from Riak might be quite slow. This is not really a use case mapreduce was designed for, and when a mapreduce job crashes or times out it is difficult to know how far along the processing of different records it got.
> I would therefore recommend considering running this type of archiving and delete job as an external batch process instead as it will give you better control over the execution and avoid timeout problems.
> Best regards,
> On 8 Apr 2013, at 00:49, Matt Black <matt.black at jbadigital.com> wrote:
> > Dear list,
> > I'm currently getting a timeout during a single phase of a multi-phase map reduce query. Is there anything I can do to assist this in running?
> > It's purpose is to backup and remove objects from Riak, so it will run periodically during quiet times moving old data out of Riak into file storage.
> > Traceback (most recent call last):
> > File "./tools/rolling_backup.py", line 185, in <module>
> > main()
> > File "./tools/rolling_backup.py", line 181, in main
> > args.func(**kwargs)
> > File "/srv/backup/tools/mapreduce.py", line 295, in do_map_reduce
> > raise e
> > _______________________________________________
> > riak-users mailing list
> > riak-users at lists.basho.com
> > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the riak-users