½Ã½ºÅÛ°ü¸®ÀÚÀÇ ½°ÅÍ Ä¿ÇǴнº Ä¿ÇÇÇâÀÌ ³ª´Â *NIX
Ä¿ÇǴнº
½Ã½ºÅÛ/³×Æ®¿÷/º¸¾ÈÀ» ´Ù·ç´Â °÷
 FAQFAQ   °Ë»ö°Ë»ö   ¸â¹ö¸®½ºÆ®¸â¹ö¸®½ºÆ®   »ç¿ëÀÚ ±×·ì»ç¿ëÀÚ ±×·ì   »ç¿ëÀÚ µî·ÏÇϱâ»ç¿ëÀÚ µî·ÏÇϱâ 
 °³ÀÎ Á¤º¸°³ÀÎ Á¤º¸   ºñ°ø°³ ¸Þ½ÃÁö¸¦ È®ÀÎÇÏ·Á¸é ·Î±×ÀÎÇϽʽÿÀºñ°ø°³ ¸Þ½ÃÁö¸¦ È®ÀÎÇÏ·Á¸é ·Î±×ÀÎÇϽʽÿÀ   ·Î±×Àηα×ÀΠ

°¡ÀÔ¾øÀÌ ´©±¸³ª ±ÛÀ» ¾µ ¼ö ÀÖ½À´Ï´Ù. °øÁö»çÇ׿¡ ´ëÇÑ ´ñ±Û±îÁöµµ..




BBS >> ¼³Ä¡, ¿î¿µ Q&A | ³×Æ®¿÷, º¸¾È Q&A | ÀÏ¹Ý Q&A || Á¤º¸¸¶´ç | AWS || ÀÚÀ¯°Ô½ÃÆÇ | ±¸Àα¸Á÷ || °øÁö»çÇ× | ÀǰßÁ¦½Ã
mysql µ¥¸óÀÌ ´Ù¿îÀÌ µË´Ï´Ù...¤Ð,,¤Ð

 
±Û ¾²±â   ´äº¯ ´Þ±â    Ä¿ÇǴнº, ½Ã½ºÅÛ ¿£Áö´Ï¾îÀÇ ½°ÅÍ °Ô½ÃÆÇ À妽º -> ½Ã½ºÅÛ ¼³Ä¡ ¹× ¿î¿µ
ÀÌÀü ÁÖÁ¦ º¸±â :: ´ÙÀ½ ÁÖÁ¦ º¸±â  
±Û¾´ÀÌ ¸Þ½ÃÁö
mysql ÃÖÀûÈ­
¼Õ´Ô





¿Ã¸®±â¿Ã·ÁÁü: 2005.3.10 ¸ñ, 5:54 pm    ÁÖÁ¦: mysql µ¥¸óÀÌ ´Ù¿îÀÌ µË´Ï´Ù...¤Ð,,¤Ð Àοë°ú ÇÔ²² ´äº¯ ±Û ÆíÁý/»èÁ¦

ÇöÀç À¥¼­¹ö 6´ë / µðºñ¼­¹ö 1´ë ·Î ·Îµå¹ß¶õ½ÌÀ» Çϸ鼭 ¼­ºñ½º¸¦ ¿î¿µÇϰí ÀÖ½À´Ï´Ù.
¸¹Àº Á¢¼ÓÀÚ·Î µðºñ°¡ 󸮸¦ Á¦´ë·Î ÇÏÁö ¸øÇϸ鼭 µ¥¸óÀÌ ÀÚÁÖ ´Ù¿îÀÌ µË´Ï´Ù.
³ª¸§´ë·Î Æ©´×À» Çϰí ÀÖÁö¸¸ ÁË´ë·Î µÇÁö¸¦ ¾Ê½À´Ï´Ù.
±×·¡¼­ µµ¿òÀ» ¹Þ°íÀÚ ÀÌ·¸°Ô ±ÛÀ» ¿Ã¸³´Ï´Ù.
¾Æ·¡ÀÇ ³»¿ëÀ» º¸½Ã°í µµ¿òÀ» ÁÖ¼ÌÀ¸¸é ÇÕ´Ï´Ù.
±×¸®±¸ µðºñ¼­¹ö¸¦ 2-3´ë·Î ¿î¿µÇÒ¼ö ÀÖ´Â ¹æ¾ÈÀÌ ÀÖ´ÂÁö... ±Ã±ÝÇÕ´Ï´Ù.
°¨»çÇÕ´Ï´Ù.
------------------------------------------------------------------------------------------------
mysqld got signal 11;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.

key_buffer_size=1073741824
read_buffer_size=16773120
max_used_connections=922
max_connections=1500
threads_connected=750
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 2287748 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

You seem to be running 32-bit Linux and have 750 concurrent connections.
If you have not changed STACK_SIZE in LinuxThreads and built the binary
yourself, LinuxThreads is quite likely to steal a part of the global heap for
the thread stack. Please read http://www.mysql.com/doc/L/i/Linux.html

thd=0x87097988
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
Cannot determine thread, fp=0x8c7fe988, backtrace may not be correct.
Stack range sanity check OK, backtrace follows:
0x808b47a
0x82c7680
0x80e5468
0x80b93f9
0x80b3285
0x80b1ebd
0x8097ea0
0x809c30d
0x8096fc9
0x8096b60
0x80964c1
0x82c2ecd
0x82f7967
New value of fp=(nil) failed sanity check, terminating stack trace!
Please read http://www.mysql.com/doc/en/Using_stack_trace.html and follow instructions on how to resolve the stack trace. Resolved
stack trace is much more helpful in diagnosing the problem, so please do
resolve it
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort...
thd->query at 0x90ffcd8 = select code from goods where (vflag='y' and maker='a') and (gtype=131 or gtype2=131 or gtype3=131 or gtype4=131) and (gtype<710 or gtype>719) order by ordnum DESC
thd->thread_id=1052422
The manual page at http://www.mysql.com/doc/en/Crashing.html contains
information that should help you find out what is causing the crash.
------------------------------------------------------------------------------------------------
À§·Î
ÀçÀ±¾Æºü
¼Õ´Ô





¿Ã¸®±â¿Ã·ÁÁü: 2005.3.11 ±Ý, 10:48 am    ÁÖÁ¦: ¼³Á¤ÆÄÀϵµ ÷ºÎÇÏ½Ã¸é ´õ¿í ÁÁ°Ú³×¿ä. Àοë°ú ÇÔ²² ´äº¯ ±Û ÆíÁý/»èÁ¦

/etc/my.cnf ÆÄÀÏÀÇ ³»¿ëÀ» ÷ºÎÇϽô°Ô
´äº¯À» ¹Þ±â¿¡ ºü¸¦µí º¸À̳׿ä.

Á¦ °æÇè»óÀ¸·Îµµ Àú got signal 11Àº Áö°Ü¿ö¼­.. ¤Ñ.¤Ñ;;;;;

¶ÇÇÑ binlog, SlowQueryLog¸¦ »ìÆìº¸¼¼¿ä.

±×¸®°í °¡Àå Áß¿äÇѰÅ.. mysqlÀÌ ½ÇÇà±ÇÇÑ À¯Àú°¡ ¹¹³Ä¿¡ µû¶ó Àú·¸°Ô ¿¡·¯³ª¸é¼­ ¹Ù·Î¹Ù·Î »ç¸ÁÇÏ´ø µ¥¸óÀÌ Á¤»óÀûÀ¸·Î µ¹¾Æ°¡³×¿ä... ¤Ñ.¤Ñ;;;;
À§·Î
¼Õ´Ô






¿Ã¸®±â¿Ã·ÁÁü: 2005.3.12 Åä, 11:36 am    ÁÖÁ¦: my.cnf ¼³Á¤ ÷ºÎ Àοë°ú ÇÔ²² ´äº¯ ±Û ÆíÁý/»èÁ¦

my.cnf ÷ºÎ ÇØµå¸³´Ï´Ù.
¼­¹ö»ç¾çÀº ¾Æ·¡ÀÇ Á¤º¸¸¦ ÂüÁ¶ÇØ µå¸³´Ï´Ù.
----------------------------------------------------------------------
cpu: Intel(R) Xeon(TM) MP CPU 2.50GHz * 4
mem:4gb
swap: 3gb
----------------------------------------------------------------------
[mysqld]
port = 3306
socket = /tmp/mysql.sock
datadir = /usr/local/mysql/data
skip-locking
set-variable = key_buffer=1024M
set-variable = max_allowed_packet=1M
set-variable = table_cache=4096
set-variable = sort_buffer=64M
set-variable = record_buffer=16M
set-variable = myisam_sort_buffer_size=64M
set-variable = thread_cache=24
set-variable = max_connections=5000
set-variable = wait_timeout=30
# Try number of CPU's*2 for thread_concurrency
set-variable = thread_concurrency=24
set-variable = max_connect_errors=5000
----------------------------------------------------------------------
À§·Î
truefeel
Ä«Æä °ü¸®ÀÚ


°¡ÀÔ: 2003³â 7¿ù 24ÀÏ
¿Ã¸° ±Û: 1277
À§Ä¡: ´ëÇѹα¹

¿Ã¸®±â¿Ã·ÁÁü: 2005.3.14 ¿ù, 11:16 pm    ÁÖÁ¦: Re: my.cnf ¼³Á¤ ÷ºÎ Àοë°ú ÇÔ²² ´äº¯

Anonymous ¾¸:
my.cnf ÷ºÎ ÇØµå¸³´Ï´Ù.
¼­¹ö»ç¾çÀº ¾Æ·¡ÀÇ Á¤º¸¸¦ ÂüÁ¶ÇØ µå¸³´Ï´Ù.
----------------------------------------------------------------------
cpu: Intel(R) Xeon(TM) MP CPU 2.50GHz * 4
mem:4gb
swap: 3gb
----------------------------------------------------------------------
[mysqld]
port = 3306
socket = /tmp/mysql.sock
datadir = /usr/local/mysql/data
skip-locking
set-variable = key_buffer=1024M
set-variable = max_allowed_packet=1M
set-variable = table_cache=4096
set-variable = sort_buffer=64M
set-variable = record_buffer=16M
set-variable = myisam_sort_buffer_size=64M
set-variable = thread_cache=24
set-variable = max_connections=5000
set-variable = wait_timeout=30
# Try number of CPU's*2 for thread_concurrency
set-variable = thread_concurrency=24
set-variable = max_connect_errors=5000
----------------------------------------------------------------------



H/W »ç¾çÀº ´Ô°ú ºñ½ÁÇϰÔ
MEM 4G, SWAP 4G,
Xeon 2.8GHz x 4 ¿¡ ´ÙÀ½°ú ÇüÅÂÀÇ ¼³Á¤À» »ç¿ëÇϰí ÀÖ½À´Ï´Ù.
´Ü, OS°¡ FreeBSDÀÔ´Ï´Ù.

Àοë:

key_buffer = 384M
max_allowed_packet = 1M
table_cache = 512
sort_buffer_size = 2M
read_buffer_size = 2M
myisam_sort_buffer_size = 64M
thread_cache = 8
query_cache_size = 32M
max_connections=2048
max_connect_errors=100
wait_timeout=30
connect_timeout=5
record_buffer=4M


ÃÊ´ç Äõ¸®´Â ¾à 300~1000°³ Á¤µµ µÇ±¸¿ä,
MySQLÀÌ Á×´Â °æ¿ì ¾ø½À´Ï´Ù.

±×¸®°í, À§ÀÇ ¿¡·¯ ¸Þ½ÃÁö¿¡ ³ª¿Â ¹®¼­µéÀ» ã¾Æ¼­ ½Ãµµ´Â ÇØº¸½Å°ÅÁÒ?

Àοë:

±×¸®±¸ µðºñ¼­¹ö¸¦ 2-3´ë·Î ¿î¿µÇÒ¼ö ÀÖ´Â ¹æ¾ÈÀÌ ÀÖ´ÂÁö... ±Ã±ÝÇÕ´Ï´Ù.


1. ¿ëµµº°·Î ³ª´©±â

DB¸¦ 1´ë¿¡¼­ 2-3´ë·Î ¿î¿µÀ» ÇÑ´Ù¸é, ¿ëµµº°·Î DB¼­¹ö¸¦ ³ª´©´Â°Ô ÁÁÀ» °Í °°½À´Ï´Ù.
À¥¼­ºñ½º³ª DB Äõ¸®¿¡¼­ Å« ºÎºÐÀ» Â÷ÁöÇÏ´Â°Ô ¾î¶² °ÍÀÎÁö ÆÄ¾ÇÀ» Çϼ¼¿ä.
À̸¦Å׸é ȸ¿ø DB, °Ô½ÃÆÇ DB, ±âŸ ÀÚ·á µîµî...
¿ëµµ¿¡ µû¶ó ºÐ»êÀ» Çϸé ÇϳªÀÇ À¥ÆäÀÌÁö¿¡¼­ ¿©·¯ DB¼­¹ö¿¡ query¸¦ ³¯·Á
ÇÑ DB¼­¹ö´ç ÃÊ´ç Äõ¸®°¡ ÁÙ¾îµé°ÚÁö¿ä.

¹°·Ð slow queryµîÀ» Àß ÆÄ¾ÇÇÏ¿© DB ¼³°è º¯°æÇÏ´Â °ÍÀº ¹°·ÐÀ̱¸¿ä.

2. MySQL Replication »ç¿ë

DB ¼­¹ö°¡ 2´ë¶ó°í ÇÒ ¶§ 1´ë´Â Master, ³ª¸ÓÁö 1´ë´Â Slave·Î ¼³Á¤À» Çϸé
Master ¿¡ I/U/D°¡ Àû¿ëµÇ¸é Slave¿¡¼­µµ °°Àº data°á°ú°¡ ÀúÀåµË´Ï´Ù.
Áï, °°Àº ³»¿ëÀÇ DB°¡ 2´ë°¡ »ý±â´Â °Ì´Ï´Ù.
±×·¡¼­, Insert/U/D/S´Â Master¿¡¼­ Slave¿¡¼­´Â Select¸¸À» ÇÏ¿©
query¸¦ ºÐ»êÇÒ ¼ö ÀÖ½À´Ï´Ù.

ÀÌ¿¡ ´ëÇØ¼­´Â
http://coffeenix.net/index.php?cata_code=45
http://dev.mysql.com/doc/mysql/en/replication.html

¿¡¼­ ã¾Æ Àо¼¼¿ä.
À§·Î
»ç¿ëÀÚ Á¤º¸ º¸±â ºñ¹Ð ¸Þ½ÃÁö º¸³»±â ±Û ¿Ã¸°ÀÌÀÇ À¥»çÀÌÆ® ¹æ¹®
ÀÌÀü ±Û Ç¥½Ã:   
±Û ¾²±â   ´äº¯ ´Þ±â    Ä¿ÇǴнº, ½Ã½ºÅÛ ¿£Áö´Ï¾îÀÇ ½°ÅÍ °Ô½ÃÆÇ À妽º -> ½Ã½ºÅÛ ¼³Ä¡ ¹× ¿î¿µ ½Ã°£´ë: GMT + 9 ½Ã°£(Çѱ¹)
ÆäÀÌÁö 1 Áß 1

 
°Ç³Ê¶Ù±â:  
»õ·Î¿î ÁÖÁ¦¸¦ ¿Ã¸± ¼ö ¾ø½À´Ï´Ù
´ä±ÛÀ» ¿Ã¸± ¼ö ¾ø½À´Ï´Ù
ÁÖÁ¦¸¦ ¼öÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù
¿Ã¸° ±ÛÀ» »èÁ¦ÇÒ ¼ö ¾ø½À´Ï´Ù
ÅõÇ¥¸¦ ÇÒ ¼ö ¾ø½À´Ï´Ù


Powered by phpBB © 2001, 2005 phpBB Group