dbTalk Databases Forums  

Is there some timeout in MySQL at one week?

comp.databases.mysql comp.databases.mysql


Discuss Is there some timeout in MySQL at one week? in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
John Nagle
 
Posts: n/a

Default Is there some timeout in MySQL at one week? - 04-20-2008 , 11:24 AM






I have a Python application which seems to lose its connection
to the database exactly once per week. It's not an idle time issue;
there's a transaction every few seconds, continuously. Is there
a 1-week timeout somewhere in MySQL or MySQLdb?

John Nagle

Reply With Quote
  #2  
Old   
Luuk
 
Posts: n/a

Default Re: Is there some timeout in MySQL at one week? - 04-20-2008 , 12:18 PM






John Nagle schreef:
Quote:
I have a Python application which seems to lose its connection
to the database exactly once per week. It's not an idle time issue;
there's a transaction every few seconds, continuously. Is there
a 1-week timeout somewhere in MySQL or MySQLdb?

John Nagle
does this happen when your logfiles rotate ? (just a wild guess...)

--
Luuk


Reply With Quote
  #3  
Old   
John Nagle
 
Posts: n/a

Default Re: Is there some timeout in MySQL at one week? - 05-11-2008 , 05:23 PM



Luuk wrote:
Quote:
John Nagle schreef:
I have a Python application which seems to lose its connection
to the database exactly once per week. It's not an idle time issue;
there's a transaction every few seconds, continuously. Is there
a 1-week timeout somewhere in MySQL or MySQLdb?

John Nagle

does this happen when your logfiles rotate ? (just a wild guess...)
It happens every Sunday morning, when the first new transaction
comes in after 5 AM or so. Unfortunately, I don't have the error
message from Python, because I'm logging errors in the database,
not a log file. This has happened for three weeks in a row now,
and it's the only time the app crashes.

I run a big batch update from another process every Sunday from
0030 to 0330 or so. But that's loading some tables that shouldn't
affect the Python application at all. The update creates some
new tables and does a LOAD DATA LOCAL INFILE. At the end of the update,
the tables are renamed. But the tables are completely different from
the ones used by the app that crashes.

The Linux server and mysqld instance have been up without a crash for
months. It's not a database engine restart.

John Nagle


Reply With Quote
  #4  
Old   
Axel Schwenke
 
Posts: n/a

Default Re: Is there some timeout in MySQL at one week? - 05-12-2008 , 06:10 AM



Hi John,

John Nagle <nagle (AT) animats (DOT) com> wrote:
Quote:
Luuk wrote:

I have a Python application which seems to lose its connection
to the database exactly once per week. It's not an idle time issue;
there's a transaction every few seconds, continuously. Is there
a 1-week timeout somewhere in MySQL or MySQLdb?

It happens every Sunday morning, when the first new transaction
comes in after 5 AM or so.

The Linux server and mysqld instance have been up without a crash for
months. It's not a database engine restart.
I guess you checked this in the MySQL error log? No other messages
for this time? You should add log_warnings=2 to my.cnf. This will
enable some additional messages in the MySQL error log.

http://dev.mysql.com/doc/refman/5.0/...d_log-warnings


XL
--
Axel Schwenke, MySQL Support Engineer, Sun Microsystems GmbH

MySQL User Manual: http://dev.mysql.com/doc/refman/5.0/en/
MySQL User Forums: http://forums.mysql.com/


Reply With Quote
  #5  
Old   
John Nagle
 
Posts: n/a

Default Re: Is there some timeout in MySQL at one week? - 05-12-2008 , 12:13 PM



Axel Schwenke wrote:
Quote:
Hi John,

John Nagle <nagle (AT) animats (DOT) com> wrote:
Luuk wrote:

I have a Python application which seems to lose its connection
to the database exactly once per week. It's not an idle time issue;
there's a transaction every few seconds, continuously. Is there
a 1-week timeout somewhere in MySQL or MySQLdb?

It happens every Sunday morning, when the first new transaction
comes in after 5 AM or so.

The Linux server and mysqld instance have been up without a crash for
months. It's not a database engine restart.

I guess you checked this in the MySQL error log? No other messages
for this time?
Nothing. This is the MySQL daemon log for all of 2008:

080120 22:34:17 mysqld started
080120 22:34:17 InnoDB: Started; log sequence number 1 192541792
080120 22:34:17 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.0.27' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source
distribution

Quote:
You should add log_warnings=2 to my.cnf. This will
enable some additional messages in the MySQL error log.
OK, let me see how I can do that without making the Plesk control
panel system unhappy. This is on a dedicated server, but it's maintained
in a way that doesn't allow too many changes to the configuration.

Is it "log_warnings" or "log-warnings"?

John Nagle


Reply With Quote
  #6  
Old   
Luuk
 
Posts: n/a

Default Re: Is there some timeout in MySQL at one week? - 05-12-2008 , 12:25 PM



John Nagle schreef:
Quote:
Axel Schwenke wrote:
Hi John,

John Nagle <nagle (AT) animats (DOT) com> wrote:
Luuk wrote:

I have a Python application which seems to lose its connection
to the database exactly once per week. It's not an idle time issue;
there's a transaction every few seconds, continuously. Is there
a 1-week timeout somewhere in MySQL or MySQLdb?

It happens every Sunday morning, when the first new transaction
comes in after 5 AM or so.

The Linux server and mysqld instance have been up without a crash
for
months. It's not a database engine restart.

I guess you checked this in the MySQL error log? No other messages
for this time?

Nothing. This is the MySQL daemon log for all of 2008:

080120 22:34:17 mysqld started
080120 22:34:17 InnoDB: Started; log sequence number 1 192541792
080120 22:34:17 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.0.27' socket: '/var/lib/mysql/mysql.sock' port: 3306
Source distribution

You should add log_warnings=2 to my.cnf. This will
enable some additional messages in the MySQL error log.

OK, let me see how I can do that without making the Plesk control
panel system unhappy. This is on a dedicated server, but it's maintained
in a way that doesn't allow too many changes to the configuration.

Is it "log_warnings" or "log-warnings"?

John Nagle
http://dev.mysql.com/doc/refman/5.0/en/error-log.html

(so its, 'log_warnings' in your config file..)

--
Luuk


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.