JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for LCG-ROLLOUT Archives


LCG-ROLLOUT Archives

LCG-ROLLOUT Archives


LCG-ROLLOUT@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

LCG-ROLLOUT Home

LCG-ROLLOUT Home

LCG-ROLLOUT  April 2012

LCG-ROLLOUT April 2012

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: CREAM MySQL overloaded with pending commands

From:

Massimo Sgaravatto <[log in to unmask]>

Reply-To:

LHC Computer Grid - Rollout <[log in to unmask]>

Date:

Thu, 19 Apr 2012 09:58:42 +0200

Content-Type:

multipart/signed

Parts/Attachments:

Parts/Attachments

text/plain (124 lines) , smime.p7s (124 lines)

For some reasons it looks like async requests are not managed.
Please open a ggus ticket (providing somewhere the glite-ce-cream.log* 
files)

Cheers, Massimo


On 04/19/2012 09:53 AM, Mario Kadastik wrote:
> Ok, this has to be something internal to CREAM that creates those commands in the database because I just ran through CREAM logs looking for authorization requests to count how many external commands have been received and over the last MONTH we've only had about 100k job start requests:
>
> [root@europa cream]# grep AUTHORIZED glite-ce-cream.log*|sed 's+.*operation=\(.*\); REMOTE.*+\1+g' |sort|uniq -c
>    57064 getServiceInfo
>    26015 {http://www.gridsite.org/namespaces/delegation-2}getProxyReq
>    39903 {http://www.gridsite.org/namespaces/delegation-2}putProxy
>    48234 {http://www.gridsite.org/namespaces/delegation-2}renewProxyReq
>    30812 JobCancel
>     1129 JobInfo
>   149126 JobPurge
>    97879 JobRegister
>   100828 JobStart
>   337312 JobStatus
>   153393 QueryEvent
>   126239 setLease
>
> Looking at last 24h in the logs I see:
> [root@europa cream]# grep AUTHORIZED glite-ce-cream.log glite-ce-cream.log.[123]|sed 's+.*operation=\(.*\); REMOTE.*+\1+g' |sort|uniq -c
>     1374 getServiceInfo
>      175 {http://www.gridsite.org/namespaces/delegation-2}getProxyReq
>     1772 {http://www.gridsite.org/namespaces/delegation-2}putProxy
>     1996 {http://www.gridsite.org/namespaces/delegation-2}renewProxyReq
>     8586 JobCancel
>       75 JobInfo
>      140 JobPurge
>     2414 JobRegister
>     6185 JobStart
>    28597 JobStatus
>    13676 QueryEvent
>      539 setLease
>
> however since I wrote the e-mail less than 24h ago the pendind command list has increased substantially:
>
> Threshold for Number of pending commands: -1 =>  Detected value for Number of pending commands: 1008838
>
> so in the last 17h it's increased by almost 100k commands. Any ideas where to look to understand what is causing this?
>
> On 18.04.2012, at 18:18, Mario Kadastik wrote:
>
>> Hi,
>>
>> as far as I know we haven't had a huge amount of jobs come through lately as this node has been broken after the last high load on scheduling system. Everything seems to time out and it seems the source is MySQL that is using 150% cpu time or more (the VM has only 2 cores assigned to the CREAM CE so that would keep the load high). Looking at the CREAM database it looks like there's a huge load of commands waiting:
>>
>> mysql>  use creamdb; select count(*), name from command group by name;                                                Database changed
>> +----------+---------------------------+
>> | count(*) | name                      |
>> +----------+---------------------------+
>> |       60 | COPY_NEW_PROXY_TO_SANDBOX |
>> |      190 | DELETE_PROXY_FROM_SANDBOX |
>> |     3845 | JOB_CANCEL                |
>> |     7731 | JOB_PURGE                 |
>> |   908382 | JOB_START                 |
>> |      495 | PROXY_RENEW               |
>> |        4 | SET_JOB_STATUS            |
>> +----------+---------------------------+
>> 7 rows in set (2.31 sec)
>>
>> And interestingly enough the creation time shows that it's mostly the past few days:
>>
>> mysql>  select count(id) from command where creationTime<adddate(now(),-3);
>> +-----------+
>> | count(id) |
>> +-----------+
>> |    282660 |
>> +-----------+
>> 1 row in set (2.25 sec)
>>
>> mysql>  select count(id) from command where creationTime<adddate(now(),-1);
>> +-----------+
>> | count(id) |
>> +-----------+
>> |    750625 |
>> +-----------+
>> 1 row in set (2.06 sec)
>>
>> Also the load monitor confirms that this is huge:
>> [root@europa ~]# glite_cream_load_monitor --show
>> Threshold for Load Average(1 min): 40 =>  Detected value for Load Average(1 min):  2.08
>> Threshold for Load Average(5 min): 40 =>  Detected value for Load Average(5 min):  1.94
>> Threshold for Load Average(15 min): 20 =>  Detected value for Load Average(15 min):  1.99
>> Threshold for Memory Usage: 95 =>  Detected value for Memory Usage: 76.97%
>> Threshold for Swap Usage: 95 =>  Detected value for Swap Usage: 0.00%
>> Threshold for Free FD: 500 =>  Detected value for Free FD: 341818
>> Threshold for tomcat FD: 800 =>  Detected value for Tomcat FD: 283
>> Threshold for FTP Connection: 30 =>  Detected value for FTP Connection: 1
>> Threshold for Number of active jobs: -1 =>  Detected value for Number of active jobs: 6287
>> Threshold for Number of pending commands: -1 =>  Detected value for Number of pending commands: 919830
>> Threshold for Disk Usage: 95% =>  Detected value for Partition / : 82%
>>
>> and active jobs 6287 seems weird considering:
>> Queue            Memory CPU Time Walltime Node  Run Que Lm  State
>> ---------------- ------ -------- -------- ----  --- --- --  -----
>> short              --   01:00:00 02:00:00   --    0   0 --   E R
>> long               --   48:00:00 72:00:00   --  554   0 --   E R
>>                                                ----- -----
>>                                                  554     0
>>
>> Thanks for help on how to debug why such huge pending commands keep occurring on our CREAM's and how to remedy this.
>>
>> Mario Kadastik, PhD
>> Researcher
>>
>> ---
>>   "Physics is like sex, sure it may have practical reasons, but that's not why we do it"
>>      -- Richard P. Feynman
>
> Mario Kadastik, PhD
> Researcher
>
> ---
>    "Physics is like sex, sure it may have practical reasons, but that's not why we do it"
>       -- Richard P. Feynman



Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

May 2024
April 2024
March 2024
November 2023
June 2023
May 2023
April 2023
March 2023
February 2023
September 2022
June 2022
May 2022
April 2022
February 2022
December 2021
November 2021
October 2021
September 2021
July 2021
June 2021
May 2021
February 2021
January 2021
November 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
February 2018
January 2018
November 2017
October 2017
September 2017
July 2017
June 2017
May 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
2006
2005
2004
2003


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager