[web2py] Re: scheduler task_id assigned to multiple workers

2016-09-08 Thread Niphlod
what driver are you using to connect to mssql ? and what are the properties of the database ? (sp_helpdb dbname). seems rather strange that a box that handles "over 20k a second" can't stand the pressure of an additional 20 (without the "k"). On Tuesday, September 6, 2016 at 5:19:30 PM UTC+2,

[web2py] Re: scheduler task_id assigned to multiple workers

2016-09-06 Thread Jason Solack
we're handing over 20k a second, the odd thing is if i move the scheduler to mysql the deadlocks stop. The mysql box is much lower specs and we only use for internal stuff so i don't want that to be final solution. On Tuesday, August 30, 2016 at 3:37:41 PM UTC-4, Niphlod wrote: > > if 24cores

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-30 Thread Niphlod
if 24cores 200+ GB RAM is the backend, how many transactions per second is that thing handling ? I saw lots of ultrabeefy servers that were poorly configured, hence did have poor performances, but it'd be criminal to blame on the product in that case (also, one the person who configured it).

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-30 Thread Jason Solack
the machine is plenty big... another note, when we use mysql on a weaker machine the deadlocks go away, so i feel that this must be something related to MSSQL On Tuesday, August 30, 2016 at 11:48:42 AM UTC-4, Niphlod wrote: > > when the backend has orrible performances :D > 12 workers with the

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-30 Thread Niphlod
when the backend has orrible performances :D 12 workers with the default heartbeat are easily taken care by a dual core 4GB RAM backend (without anything beefy on top of that). On Tuesday, August 30, 2016 at 5:41:01 PM UTC+2, Jason Solack wrote: > > So after more investigation we are seeing that

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-30 Thread Jason Solack
So after more investigation we are seeing that our load balanced server with processes runnin on all three machines are causing a lot of deadlocks in MSSQL. Have you seen that before? On Friday, August 19, 2016 at 2:40:35 AM UTC-4, Niphlod wrote: > > yep. your worker setup clearly can't stably

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-19 Thread Niphlod
yep. your worker setup clearly can't stably be connected to your backend. On Thursday, August 18, 2016 at 7:41:38 PM UTC+2, Jason Solack wrote: > > so after some digging what i'm seeing is the sw.insert(...) is not > committing and the mybackedstatus is None, this happens 5 times and then > the

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-18 Thread Jason Solack
so after some digging what i'm seeing is the sw.insert(...) is not committing and the mybackedstatus is None, this happens 5 times and then the worker appears and almost instantly disappers. There are no errors. i tried manually doing a db.executesql but i'm having trouble getting

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-18 Thread Jason Solack
doing that now, what i'm seeing is some problems here: # record heartbeat mybackedstatus = db(sw.worker_name == self .worker_name).select().first() if not mybackedstatus: sw.insert(status=ACTIVE, worker_name=self.worker_name,

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-18 Thread Niphlod
turn on workers debugging level and grep for errors. On Thursday, August 18, 2016 at 4:38:31 PM UTC+2, Jason Solack wrote: > > I think we have this scenario happening: > > > https://groups.google.com/forum/#%21searchin/web2py/task_id%7csort:relevance/web2py/AYH5IzCIEMo/hY6aNplbGX8J > > our

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-18 Thread Jason Solack
I think we have this scenario happening: https://groups.google.com/forum/#%21searchin/web2py/task_id%7csort:relevance/web2py/AYH5IzCIEMo/hY6aNplbGX8J our workers seems to be restarting quickly and we're trying to figure out why On Thursday, August 18, 2016 at 3:55:55 AM UTC-4, Niphlod wrote: >

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-18 Thread Niphlod
small recap...a single worker is tasked with assigning tasks (the one with is_ticker=True) and then that task is picked up only by the assigned worker (you can see it on the scheduler_task.assigned_worker_name column of the task). There's no way the same task (i.e. a scheduler_task "row")

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-17 Thread Jason Solack
Something else i am seeing, my workers are disappearing / reappearing in the scheduler_worker table. could it be that a worker drops off and when new workers appear they are then assigned? any ideas why my worker list would drop / add so frequently? On Wednesday, August 17, 2016 at

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-17 Thread Jason Solack
I only see the task_id in the scheduler_run table, it seems to be added as many times as it can while the run is going... a short run will add just 2 of the workers and stop adding them once the initial run is completed On Wednesday, August 17, 2016 at 11:15:52 AM UTC-4, Niphlod wrote: > > task

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-17 Thread Niphlod
task assignment is quite "beefy" (sadly, or fortunately in your case, it favours consistence vs speed) : I don't see any reason why a single task gets picked up by ALL of the 12 workers at the same time if the backend isn't lying (i.e. slaves not replicating master data), if your mssql is

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-17 Thread Jason Solack
I'm using nginx and MSSQL for the db On Wednesday, August 17, 2016 at 3:11:11 AM UTC-4, Niphlod wrote: > > nothing in particular. what backend are you using ? > > On Tuesday, August 16, 2016 at 8:35:17 PM UTC+2, Jason Solack wrote: >> >> task = scheduler.queue_task(tab_run, >>

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-17 Thread Niphlod
nothing in particular. what backend are you using ? On Tuesday, August 16, 2016 at 8:35:17 PM UTC+2, Jason Solack wrote: > > task = scheduler.queue_task(tab_run, > pvars=dict(tab_file_name=tab_file_name, the_form_file=the_form_file), > timeout=60 * 60 * 24, sync_output=2,

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-16 Thread Jason Solack
task = scheduler.queue_task(tab_run, pvars=dict(tab_file_name=tab_file_name, the_form_file=the_form_file), timeout=60 * 60 * 24, sync_output=2, immediate=False, group_name=scheduler_group_name) anything look amiss here? On Tuesday, August 16, 2016 at 2:14:38 PM UTC-4, Dave S wrote: >

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-16 Thread Dave S
On Tuesday, August 16, 2016 at 9:38:09 AM UTC-7, Jason Solack wrote: > > Hello all, i am having a situation where my scheduled jobs are being > picked up by multiple workers. My last task was picked up by all 12 > workers and is crushing the machines. This is a load balanced machine with >