Re: [openstack-dev] [Rally] Question on periodic task
Hi Boris Looks like this would require changes in key portions of Rally infra. Need some more time getting a hang of rally by committing a few scenarios before I make infra changes Ajay From: Boris Pavlovic mailto:bo...@pavlovic.me>> Reply-To: "OpenStack Development Mailing List (not for usage questions)" mailto:openstack-dev@lists.openstack.org>> Date: Friday, November 21, 2014 at 7:02 AM To: "OpenStack Development Mailing List (not for usage questions)" mailto:openstack-dev@lists.openstack.org>> Subject: Re: [openstack-dev] [Rally] Question on periodic task Ajay, We have this in our RoadMap: https://github.com/stackforge/rally/blob/master/doc/feature_request/multi_scenarios_load_gen.rst So, it's not yet supported out of box, but we really would like to have it in upstream. Are you interested in work on this direction? Best regards, Boris Pavlovic On Fri, Nov 21, 2014 at 8:22 AM, Ajay Kalambur (akalambu) mailto:akala...@cisco.com>> wrote: Ok the action I wanted to perform was for HA I.e execute a scenario like VM boot and in parallel in a separate process , ssh and restart controller node for instance I thought periodic task would be useful for that. I guess I need to look at some other way of performing this Ajay From: Boris Pavlovic mailto:bpavlo...@mirantis.com>> Reply-To: "OpenStack Development Mailing List (not for usage questions)" mailto:openstack-dev@lists.openstack.org>> Date: Thursday, November 20, 2014 at 7:03 PM To: "OpenStack Development Mailing List (not for usage questions)" mailto:openstack-dev@lists.openstack.org>> Subject: Re: [openstack-dev] [Rally] Question on periodic task Hi Ajay, I am not sure why you are looking that part at all. everything in openstack/common/* is oslo-incubator code. Actually that method is not used in Rally yet, except Rally as a Service part that doesn't work yet. As a scenario developer I think you should be able to find everything here: https://github.com/stackforge/rally/tree/master/rally/benchmark So I really don't the case when you need to pass something to periodic task.. It's not that "task" Best regards, Boris Pavlovic On Fri, Nov 21, 2014 at 3:36 AM, Ajay Kalambur (akalambu) mailto:akala...@cisco.com>> wrote: Hi I have a question on /rally/openstack/common/periodic_task.py It looks like if I have a method decorated with @periodic_task my method would get scheduled in separate process every N seconds Now let us say we have a scenario and this periodic_task how does it work when concurrency=2 for instance Is the periodic task also scheduled in 2 separate process. I actually want only one periodic task process irrespective of concurrency count in scenario Also as a scenario developer how can I pass arguments into the periodic task Ajay ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org<mailto:OpenStack-dev@lists.openstack.org> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org<mailto:OpenStack-dev@lists.openstack.org> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] [Rally] Question on periodic task
Ajay, We have this in our RoadMap: https://github.com/stackforge/rally/blob/master/doc/feature_request/multi_scenarios_load_gen.rst So, it's not yet supported out of box, but we really would like to have it in upstream. Are you interested in work on this direction? Best regards, Boris Pavlovic On Fri, Nov 21, 2014 at 8:22 AM, Ajay Kalambur (akalambu) < akala...@cisco.com> wrote: > Ok the action I wanted to perform was for HA I.e execute a scenario like > VM boot and in parallel in a separate process , ssh and restart controller > node for instance > I thought periodic task would be useful for that. I guess I need to look > at some other way of performing this > Ajay > > > From: Boris Pavlovic > Reply-To: "OpenStack Development Mailing List (not for usage questions)" < > openstack-dev@lists.openstack.org> > Date: Thursday, November 20, 2014 at 7:03 PM > To: "OpenStack Development Mailing List (not for usage questions)" < > openstack-dev@lists.openstack.org> > Subject: Re: [openstack-dev] [Rally] Question on periodic task > > Hi Ajay, > > > I am not sure why you are looking that part at all. > everything in openstack/common/* is oslo-incubator code. > Actually that method is not used in Rally yet, except Rally as a Service > part that doesn't work yet. > > As a scenario developer I think you should be able to find everything > here: > https://github.com/stackforge/rally/tree/master/rally/benchmark > > So I really don't the case when you need to pass something to periodic > task.. It's not that "task" > > > Best regards, > Boris Pavlovic > > > > > > > On Fri, Nov 21, 2014 at 3:36 AM, Ajay Kalambur (akalambu) < > akala...@cisco.com> wrote: > >> Hi >> I have a question on >> /rally/openstack/common/periodic_task.py >> >> It looks like if I have a method decorated with @periodic_task my >> method would get scheduled in separate process every N seconds >> Now let us say we have a scenario and this periodic_task how does it work >> when concurrency=2 for instance >> >> Is the periodic task also scheduled in 2 separate process. I actually >> want only one periodic task process irrespective of concurrency count in >> scenario >> Also as a scenario developer how can I pass arguments into the periodic >> task >> >> >> Ajay >> >> >> ___ >> OpenStack-dev mailing list >> OpenStack-dev@lists.openstack.org >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev >> >> > > ___ > OpenStack-dev mailing list > OpenStack-dev@lists.openstack.org > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > > ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] [Rally] Question on periodic task
Ok the action I wanted to perform was for HA I.e execute a scenario like VM boot and in parallel in a separate process , ssh and restart controller node for instance I thought periodic task would be useful for that. I guess I need to look at some other way of performing this Ajay From: Boris Pavlovic mailto:bpavlo...@mirantis.com>> Reply-To: "OpenStack Development Mailing List (not for usage questions)" mailto:openstack-dev@lists.openstack.org>> Date: Thursday, November 20, 2014 at 7:03 PM To: "OpenStack Development Mailing List (not for usage questions)" mailto:openstack-dev@lists.openstack.org>> Subject: Re: [openstack-dev] [Rally] Question on periodic task Hi Ajay, I am not sure why you are looking that part at all. everything in openstack/common/* is oslo-incubator code. Actually that method is not used in Rally yet, except Rally as a Service part that doesn't work yet. As a scenario developer I think you should be able to find everything here: https://github.com/stackforge/rally/tree/master/rally/benchmark So I really don't the case when you need to pass something to periodic task.. It's not that "task" Best regards, Boris Pavlovic On Fri, Nov 21, 2014 at 3:36 AM, Ajay Kalambur (akalambu) mailto:akala...@cisco.com>> wrote: Hi I have a question on /rally/openstack/common/periodic_task.py It looks like if I have a method decorated with @periodic_task my method would get scheduled in separate process every N seconds Now let us say we have a scenario and this periodic_task how does it work when concurrency=2 for instance Is the periodic task also scheduled in 2 separate process. I actually want only one periodic task process irrespective of concurrency count in scenario Also as a scenario developer how can I pass arguments into the periodic task Ajay ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org<mailto:OpenStack-dev@lists.openstack.org> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] [Rally] Question on periodic task
Hi Ajay, I am not sure why you are looking that part at all. everything in openstack/common/* is oslo-incubator code. Actually that method is not used in Rally yet, except Rally as a Service part that doesn't work yet. As a scenario developer I think you should be able to find everything here: https://github.com/stackforge/rally/tree/master/rally/benchmark So I really don't the case when you need to pass something to periodic task.. It's not that "task" Best regards, Boris Pavlovic On Fri, Nov 21, 2014 at 3:36 AM, Ajay Kalambur (akalambu) < akala...@cisco.com> wrote: > Hi > I have a question on > /rally/openstack/common/periodic_task.py > > It looks like if I have a method decorated with @periodic_task my method > would get scheduled in separate process every N seconds > Now let us say we have a scenario and this periodic_task how does it work > when concurrency=2 for instance > > Is the periodic task also scheduled in 2 separate process. I actually > want only one periodic task process irrespective of concurrency count in > scenario > Also as a scenario developer how can I pass arguments into the periodic > task > > > Ajay > > > ___ > OpenStack-dev mailing list > OpenStack-dev@lists.openstack.org > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > > ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev