dbTalk Databases Forums  

MySQL installed with OptWare, problem with stability

comp.databases.mysql comp.databases.mysql


Discuss MySQL installed with OptWare, problem with stability in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Hans Kjaergaard
 
Posts: n/a

Default MySQL installed with OptWare, problem with stability - 09-20-2010 , 10:18 AM






I have a NAS installed MySQL with/from OptWare.

It works in some way ok, but now and then it goes down, both MySQL and
the NAS, no web, no SSH, no telnet, no sql.

Just power off the nas or i rare cases I have to disconnect the power,
not even reset button works.

Any idear about where this MySQL put log files ?

Had some try to upgrade the OptWare installed MySQL to version 5.0 and
maybe then up to present 5.2 ?

I just have ont database on then MySQL, and only one table, and the
table has a record with only one entery, a decimal number.

I fill in a lot of records (millions) with numbers between 1 and 10.
I can some times fill in more than 10 millinon record before it frezz
other times just som hundred.

This kind of use of a databse should not be a reason for stability
problems ? I can understand preformance problems.


/Hans

Reply With Quote
  #2  
Old   
Peter H. Coffin
 
Posts: n/a

Default Re: MySQL installed with OptWare, problem with stability - 09-20-2010 , 10:55 AM






On Mon, 20 Sep 2010 19:18:54 +0400, Hans Kjaergaard wrote:
Quote:
I have a NAS installed MySQL with/from OptWare.

It works in some way ok, but now and then it goes down, both MySQL and
the NAS, no web, no SSH, no telnet, no sql.

Just power off the nas or i rare cases I have to disconnect the power,
not even reset button works.

Any idear about where this MySQL put log files ?

Had some try to upgrade the OptWare installed MySQL to version 5.0 and
maybe then up to present 5.2 ?

I just have ont database on then MySQL, and only one table, and the
table has a record with only one entery, a decimal number.

I fill in a lot of records (millions) with numbers between 1 and 10.
I can some times fill in more than 10 millinon record before it frezz
other times just som hundred.

This kind of use of a databse should not be a reason for stability
problems ? I can understand preformance problems.
I would not expect MySQL to be causing problems to a NAS sufficient to
make the entire NAS fall over. Is the MySQL *server* code installed over
there, or is the server code running on a machine using the NAS for
storage? To be brutally honest, I would not try to run anything except
file service software on a NAS device, and would put the database on a
real server. The NAS is a fine place to put backups.

--
51. If one of my dungeon guards begins expressing concern over the
conditions in the beautiful princess' cell, I will immediately
transfer him to a less people-oriented position.
--Peter Anspach's list of things to do as an Evil Overlord

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

Default Re: MySQL installed with OptWare, problem with stability - 09-20-2010 , 01:11 PM



Hans Kjaergaard <hans.k2teknik (AT) post5 (DOT) tele.dk> wrote:
Quote:
I have a NAS installed MySQL with/from OptWare.
Do you mean NAS as in "a smallist box that exports a disk to the
network" and there is a MySQL running on it?

Quote:
It works in some way ok, but now and then it goes down, both MySQL and
the NAS, no web, no SSH, no telnet, no sql.
Could be anything. Hot candidate would be: running out of memory.

Quote:
Any idear about where this MySQL put log files ?
Depends on configuration. You should check the MySQL error log:

mysql> SHOW VARIABLES LIKE 'log_error';

Default is $DATADIR/$HOSTNAME.err

mysql> SHOW VARIABLES LIKE 'datadir';

Quote:
Had some try to upgrade the OptWare installed MySQL to version 5.0 and
maybe then up to present 5.2 ?
There is no 5.2. Next version after 5.0 is 5.1, then 5.5.

Quote:
This kind of use of a databse should not be a reason for stability
problems ? I can understand preformance problems.
Certainly not. But on small computer like cheap NASes you may hit
some resource bottleneck rather soon.


XL

Reply With Quote
  #4  
Old   
Hans Kjaergaard
 
Posts: n/a

Default Re: MySQL installed with OptWare, problem with stability - 09-21-2010 , 07:58 AM



On Mon, 20 Sep 2010 15:55:03 GMT, "Peter H. Coffin"
<hellsop (AT) ninehells (DOT) com> wrote:

Quote:
Is the MySQL *server* code installed over
there,
Yes. all MySQL server is running on the NAS.

Quote:
To be brutally honest, I would not try to run anything except
file service software on a NAS device, and would put the database on a
real server.
Well, I will give it a try, I do not need preformance, so I am willing
to "pay" for stability on that cost.

I need to find a way to make my MySQL server more stabel on the cost
of preformance.
I think there must be some settings to do so.

I notist mysqld --safe-mode, and flush tables, maybe something to try
?


/Hans

Reply With Quote
  #5  
Old   
Peter H. Coffin
 
Posts: n/a

Default Re: MySQL installed with OptWare, problem with stability - 09-21-2010 , 01:55 PM



On Tue, 21 Sep 2010 16:58:06 +0400, Hans Kjaergaard wrote:
Quote:
On Mon, 20 Sep 2010 15:55:03 GMT, "Peter H. Coffin"
hellsop (AT) ninehells (DOT) com> wrote:

Is the MySQL *server* code installed over
there,
Yes. all MySQL server is running on the NAS.

To be brutally honest, I would not try to run anything except
file service software on a NAS device, and would put the database on a
real server.
Well, I will give it a try, I do not need preformance, so I am willing
to "pay" for stability on that cost.

I need to find a way to make my MySQL server more stabel on the cost
of preformance.
I think there must be some settings to do so.
The way to increase the stability for the application, though, is to
give the server a reasonable amount of resources to work with, so it can
return results promptly.

Quote:
I notist mysqld --safe-mode, and flush tables, maybe something to try
?
--safe-mode turns off some optimization options. It doesn't mean the
server uses less RAM. (For reference, my installation mostly manages
metadata for a picture gallery. Not exactly a stressful situation. It
uses about 75MB normally, and peaks at about 120MB of memory and swap.
Most NAS boxes have less than that for *the whole system*)

--
32. I will not fly into a rage and kill a messenger who brings me bad
news just to illustrate how evil I really am. Good messengers are
hard to come by.
--Peter Anspach's list of things to do as an Evil Overlord

Reply With Quote
  #6  
Old   
Hans Kjaergaard
 
Posts: n/a

Default Re: MySQL installed with OptWare, problem with stability - 09-23-2010 , 04:52 AM



On Tue, 21 Sep 2010 18:55:03 GMT, "Peter H. Coffin"
<hellsop (AT) ninehells (DOT) com> wrote:

Quote:
The way to increase the stability for the application, though, is to
give the server a reasonable amount of resources to work with, so it can
return results promptly.
Why not set the server up in a way that it only need the resources
that is present ?

Quote:
--safe-mode turns off some optimization options. It doesn't mean the
server uses less RAM. (For reference, my installation mostly manages
metadata for a picture gallery. Not exactly a stressful situation. It
uses about 75MB normally, and peaks at about 120MB of memory and swap.
Most NAS boxes have less than that for *the whole system*)
I start the mysql demon with mysqld_safe now and it looks more stabel.

When I look at the NAS resources when the sql server is reciving all I
can put into it, the use af ram is 7%, nothing to worry for I think ?

More interesting is to know when the use of ram is biggest, do it
depend om complex SELECT statements or something else ?


/Hans

Reply With Quote
  #7  
Old   
Hans Kjaergaard
 
Posts: n/a

Default Re: MySQL installed with OptWare, problem with stability - 09-23-2010 , 05:02 AM



On Mon, 20 Sep 2010 20:11:18 +0200, Axel Schwenke
<axel.schwenke (AT) gmx (DOT) de> wrote:

Quote:
Do you mean NAS as in "a smallist box that exports a disk to the
network" and there is a MySQL running on it?
Yes, just like that.

Quote:
It works in some way ok, but now and then it goes down, both MySQL and
the NAS, no web, no SSH, no telnet, no sql.

Could be anything. Hot candidate would be: running out of memory.
Do not look like that, but how to see ? I have to coolrestart the NAS
to get in contact when things go wrong, so nothing usefull in logfile
when I come it contact with it again.

Quote:
Any idear about where this MySQL put log files ?

Depends on configuration. You should check the MySQL error log:

mysql> SHOW VARIABLES LIKE 'log_error';

Default is $DATADIR/$HOSTNAME.err

mysql> SHOW VARIABLES LIKE 'datadir';
Thanks for this, usefull stuff to know.

Quote:
This kind of use of a databse should not be a reason for stability
problems ? I can understand preformance problems.

Certainly not. But on small computer like cheap NASes you may hit
some resource bottleneck rather soon.
But how to find out whitch bottleneck I had hit, and how to setup
MySQL (or the NAS) in a way that it will not happen again ?

If ram should be a problem, can I then use a USB stick as ram in any
way ?
I know the flash ram is slow and have limith life, but stability on
the cost of preformance is ok in this case.


/Hans

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

Default Re: MySQL installed with OptWare, problem with stability - 09-23-2010 , 08:10 AM



Hans Kjaergaard <hans.k2teknik (AT) post5 (DOT) tele.dk> wrote:
Quote:
Could be anything. Hot candidate would be: running out of memory.

Do not look like that, but how to see ? I have to coolrestart the NAS
to get in contact when things go wrong, so nothing usefull in logfile
when I come it contact with it again.
Are the logs deleted? You should put both MySQL error log and syslog
to disk. Another idea would be to instruct the NAS'es syslogd to
forward messages to some of your machines. And you can make MySQL log
to syslog too. If you have an old 5.0, it may be tricky. But look at
safe_mysqld where it redirects to the error log. There you should have
it pipe to logger. Newer versions can log to syslog directly.

Once you have a log, you might immediately see what the problem is.
Without a log it's just guessing.

Quote:
If ram should be a problem, can I then use a USB stick as ram in any
way ?
No. USB sticks are no RAM, but Flash. But you could use the USB stick
to store logs, so you don't lose them after reboot.


XL

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.