Re: [v9.3] Extra Daemons (Re: elegant and effective way for running jobs inside a database)

From: Amit Kapila <amit(dot)kapila(at)huawei(dot)com>
To: "'Kohei KaiGai'" <kaigai(at)kaigai(dot)gr(dot)jp>
Cc: "'Simon Riggs'" <simon(at)2ndquadrant(dot)com>, "'Alvaro Herrera'" <alvherre(at)2ndquadrant(dot)com>, "'Boszormenyi Zoltan'" <zb(at)cybertec(dot)at>, "'Jaime Casanova'" <jaime(at)2ndquadrant(dot)com>, "'Andrew Dunstan'" <andrew(at)dunslane(dot)net>, "'Robert Haas'" <robertmhaas(at)gmail(dot)com>, "'David E(dot) Wheeler'" <david(at)justatheory(dot)com>, "'Pg Hackers'" <pgsql-hackers(at)postgresql(dot)org>, 'Hans-Jürgen Schönig' <hs(at)cybertec(dot)at>
Subject: Re: [v9.3] Extra Daemons (Re: elegant and effective way for running jobs inside a database)
Date: 2012-09-21 05:47:38
Message-ID: 004901cd97bc$9c9e5380$d5dafa80$@kapila@huawei.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thursday, September 20, 2012 7:35 PM Kohei KaiGai wrote:
2012/9/20 Amit Kapila <amit(dot)kapila(at)huawei(dot)com>:
> On Thursday, September 20, 2012 1:44 AM Simon Riggs wrote:
> On 12 September 2012 04:30, Amit Kapila <amit(dot)kapila(at)huawei(dot)com> wrote:
>> On Tuesday, September 11, 2012 9:09 PM Alvaro Herrera wrote:
>> Excerpts from Boszormenyi Zoltan's message of vie jun 29 09:11:23 -0400
> 2012:
>>
>>>>>> We have some use cases for this patch, when can you post
>>>>>> a new version? I would test and review it.
>>
>>>>> What use cases do you have in mind?
>>
>>>> Wouldn't it be helpful for some features like parallel query in
future?
>
>>> Trying to solve that is what delayed this patch, so the scope of this
>>> needs to be "permanent daemons" rather than dynamically spawned worker
>>> tasks.
>
>> Why can't worker tasks be also permanent, which can be controlled
through
>> configuration. What I mean to say is that if user has need for parallel
>> operations
>> he can configure max_worker_tasks and those many worker tasks will get
>> created.
>> Otherwise without having such parameter, we might not be sure whether
such
>> deamons
>> will be of use to database users who don't need any background ops.
>
>> The dynamism will come in to scene when we need to allocate such
daemons
>> for particular ops(query), because
>> might be operation need certain number of worker tasks, but no such
task
>> is available, at that time it need
>> to be decided whether to spawn a new task or change the parallelism in
>> operation such that it can be executed with
>> available number of worker tasks.
>

> I'm also not sure why "permanent daemons" is more difficult than
dynamically
> spawned daemons,

I think Alvaro and Simon also felt "permanent daemons" is not difficult and
is the right way to go,
that’s why the feature is getting developed on those lines.

With Regards,
Amit Kapila.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2012-09-21 07:25:55 Re: xlog filename formatting functions in recovery
Previous Message Amit Kapila 2012-09-21 05:26:49 Re: [v9.3] Extra Daemons (Re: elegant and effective way for running jobs inside a database)