API to enlist running user tasks

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

API to enlist running user tasks

Nikolay Izhikov-2
Hello, Igniters.

We have some requests from users [1] to have ability to get list of all running continuous queries.
I propose to implement such ability.

To implement it we have to extend our JMX beans to provide the following information:

* List of continuous queries for cache:
    * local listener node.
    * listener class name.
    * routine ID.
    * other CQ parameters
    * creation timestamp (?)

* List of running compute tasks for node:
    * node ID task started from.
    * task class name.
    * other task parameters.
    * creation timestamp (?)
    * start timestamp (?)

* List of running  jobs for node:
    * node ID task started from.
    * task class name.
    * other job parameters.
    * creation timestamp (?)
    * start timestamp (?)

I'm planning to file tickets to implement these features.
So, please, write if you have any objections.

[1] http://apache-ignite-developers.2346864.n4.nabble.com/Re-List-of-running-Continuous-queries-or-CacheEntryListener-per-cache-or-node-tp25526.html

signature.asc (465 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: API to enlist running user tasks

dsetrakyan
Nikolay, how about regular SQL queries?

On Tue, Feb 13, 2018 at 6:31 AM, Nikolay Izhikov <[hidden email]>
wrote:

> Hello, Igniters.
>
> We have some requests from users [1] to have ability to get list of all
> running continuous queries.
> I propose to implement such ability.
>
> To implement it we have to extend our JMX beans to provide the following
> information:
>
> * List of continuous queries for cache:
>     * local listener node.
>     * listener class name.
>     * routine ID.
>     * other CQ parameters
>     * creation timestamp (?)
>
> * List of running compute tasks for node:
>     * node ID task started from.
>     * task class name.
>     * other task parameters.
>     * creation timestamp (?)
>     * start timestamp (?)
>
> * List of running  jobs for node:
>     * node ID task started from.
>     * task class name.
>     * other job parameters.
>     * creation timestamp (?)
>     * start timestamp (?)
>
> I'm planning to file tickets to implement these features.
> So, please, write if you have any objections.
>
> [1] http://apache-ignite-developers.2346864.n4.nabble.
> com/Re-List-of-running-Continuous-queries-or-CacheEntryListener-per-cache-
> or-node-tp25526.html
Reply | Threaded
Open this post in threaded view
|

Re: API to enlist running user tasks

dmagda
In reply to this post by Nikolay Izhikov-2
Sounds like a right addition to our metrics APIs.

However, I’m not sure how this part is related to continuous queries:

> * List of running compute tasks for node:
>    * node ID task started from.
>    * task class name.
>    * other task parameters.
>    * creation timestamp (?)
>    * start timestamp (?)
>
> * List of running  jobs for node:
>    * node ID task started from.
>    * task class name.
>    * other job parameters.
>    * creation timestamp (?)
>    * start timestamp (?)

Or is it just a separate task?


Denis

> On Feb 13, 2018, at 6:31 AM, Nikolay Izhikov <[hidden email]> wrote:
>
> Hello, Igniters.
>
> We have some requests from users [1] to have ability to get list of all running continuous queries.
> I propose to implement such ability.
>
> To implement it we have to extend our JMX beans to provide the following information:
>
> * List of continuous queries for cache:
>    * local listener node.
>    * listener class name.
>    * routine ID.
>    * other CQ parameters
>    * creation timestamp (?)
>
> * List of running compute tasks for node:
>    * node ID task started from.
>    * task class name.
>    * other task parameters.
>    * creation timestamp (?)
>    * start timestamp (?)
>
> * List of running  jobs for node:
>    * node ID task started from.
>    * task class name.
>    * other job parameters.
>    * creation timestamp (?)
>    * start timestamp (?)
>
> I'm planning to file tickets to implement these features.
> So, please, write if you have any objections.
>
> [1] http://apache-ignite-developers.2346864.n4.nabble.com/Re-List-of-running-Continuous-queries-or-CacheEntryListener-per-cache-or-node-tp25526.html <http://apache-ignite-developers.2346864.n4.nabble.com/Re-List-of-running-Continuous-queries-or-CacheEntryListener-per-cache-or-node-tp25526.html>
Reply | Threaded
Open this post in threaded view
|

Re: API to enlist running user tasks

Nikolay Izhikov-2
Hello, Denis.

> Or is it just a separate task?

Yes, it is a separate task.

I propose to have a different method for each type of long running user task:

* continuous queries
* compute tasks
* compute jobs

В Вт, 13/02/2018 в 17:23 -0800, Denis Magda пишет:

> Sounds like a right addition to our metrics APIs.
>
> However, I’m not sure how this part is related to continuous queries:
>
> > * List of running compute tasks for node:
> >    * node ID task started from.
> >    * task class name.
> >    * other task parameters.
> >    * creation timestamp (?)
> >    * start timestamp (?)
> >
> > * List of running  jobs for node:
> >    * node ID task started from.
> >    * task class name.
> >    * other job parameters.
> >    * creation timestamp (?)
> >    * start timestamp (?)
>
> Or is it just a separate task?
>
> —
> Denis
>
> > On Feb 13, 2018, at 6:31 AM, Nikolay Izhikov <[hidden email]> wrote:
> >
> > Hello, Igniters.
> >
> > We have some requests from users [1] to have ability to get list of all running continuous queries.
> > I propose to implement such ability.
> >
> > To implement it we have to extend our JMX beans to provide the following information:
> >
> > * List of continuous queries for cache:
> >    * local listener node.
> >    * listener class name.
> >    * routine ID.
> >    * other CQ parameters
> >    * creation timestamp (?)
> >
> > * List of running compute tasks for node:
> >    * node ID task started from.
> >    * task class name.
> >    * other task parameters.
> >    * creation timestamp (?)
> >    * start timestamp (?)
> >
> > * List of running  jobs for node:
> >    * node ID task started from.
> >    * task class name.
> >    * other job parameters.
> >    * creation timestamp (?)
> >    * start timestamp (?)
> >
> > I'm planning to file tickets to implement these features.
> > So, please, write if you have any objections.
> >
> > [1] http://apache-ignite-developers.2346864.n4.nabble.com/Re-List-of-running-Continuous-queries-or-CacheEntryListener-per-cache-or-node-tp25526.html <http://apache-ignite-developers.2346864.n4.nabble.com/Re-List-of-running-Continuous-queries-or-CacheEntryListener-per-cache-or-node-tp25526.html>

signature.asc (465 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: API to enlist running user tasks

Nikolay Izhikov-2
In reply to this post by dsetrakyan
Dmitriy

I thought about those type of tasks that require custom user code to be executed inside Ignite.

Your suggestion make sense for me also. Let's include SQL queries.
Should we include ScanQuery, TextQuery to this API?

В Вт, 13/02/2018 в 13:27 -0800, Dmitriy Setrakyan пишет:

> Nikolay, how about regular SQL queries?
>
> On Tue, Feb 13, 2018 at 6:31 AM, Nikolay Izhikov <[hidden email]>
> wrote:
>
> > Hello, Igniters.
> >
> > We have some requests from users [1] to have ability to get list of all
> > running continuous queries.
> > I propose to implement such ability.
> >
> > To implement it we have to extend our JMX beans to provide the following
> > information:
> >
> > * List of continuous queries for cache:
> >     * local listener node.
> >     * listener class name.
> >     * routine ID.
> >     * other CQ parameters
> >     * creation timestamp (?)
> >
> > * List of running compute tasks for node:
> >     * node ID task started from.
> >     * task class name.
> >     * other task parameters.
> >     * creation timestamp (?)
> >     * start timestamp (?)
> >
> > * List of running  jobs for node:
> >     * node ID task started from.
> >     * task class name.
> >     * other job parameters.
> >     * creation timestamp (?)
> >     * start timestamp (?)
> >
> > I'm planning to file tickets to implement these features.
> > So, please, write if you have any objections.
> >
> > [1] http://apache-ignite-developers.2346864.n4.nabble.
> > com/Re-List-of-running-Continuous-queries-or-CacheEntryListener-per-cache-
> > or-node-tp25526.html

signature.asc (465 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: API to enlist running user tasks

dsetrakyan
On Tue, Feb 13, 2018 at 8:22 PM, Nikolay Izhikov <[hidden email]>
wrote:

> Dmitriy
>
> I thought about those type of tasks that require custom user code to be
> executed inside Ignite.
>
> Your suggestion make sense for me also. Let's include SQL queries.
> Should we include ScanQuery, TextQuery to this API?
>

I do not see any reason why not. Let's do it, if possible.