== KLDP.ORG µðºñ¼­¹ö == *ÇöÀç ÁÖ¿ä ¼³Á¤ {{{ key_buffer = 128M max_allowed_packet = 4M table_cache = 1024 sort_buffer_size = 2M read_buffer_size = 2M read_rnd_buffer_size = 2M join_buffer_size = 2M myisam_sort_buffer_size = 8M thread_cache = 20 thread_stack = 126976 max_connections = 100 max_heap_table_size = 512M tmp_table_size = 512M max_tmp_tables = 20 query_cache_type = 1 query_cache_size = 512M query_cache_limit = 128M innodb_buffer_pool_size = 1536M innodb_additional_mem_pool_size = 64M innodb_log_file_size = 128M innodb_log_buffer_size = 16M innodb_log_files_in_group = 2 }}} *¼³Á¤ º¯°æ °èȹ *innodb_buffer_pool_size¸¦ 2048M·Î ´Ã¸°´Ù. ÇöÀç buffer¸¦ °ÅÀÇ Ç®·Î ¾²°í ÀÖÀ½. °ÅÀÇ ¸ðµç Å×À̺íÀÌ innodb·Î µÇ¾îÀÖÀ½. Ãß°¡ÀûÀ¸·Î [http://mysqldatabaseadministration.blogspot.com/2007/01/increase-innodblogfilesize-proper-way.html]¸¦ Âü°íÇØ innodb_log_file_sizeµµ innodb_buffer_pool_size/4 Á¤µµ·Î º¯°æÇؾßÇÔ. *½ÃµµÇغ» º¯°æ°ª *query_cache_size¸¦ ¸¹ÀÌ ´Ã·ÈÀ¸³ª ÀϺθ¸ »ç¿ëÇÏ°í ³²´Â °ø°£ÀÌ ¸¹¾ÒÀ½. ´ëºÎºÐÀÇ Äõ¸®µéÀÌ ´ÜÀÏ row¸¦ °¡Á®¿À´Â °ÍµéÀ̶ó ij½ÌÀÌ Àß ¾ÈµÇ°Å³ª ij½Ã¸Þ¸ð¸®°¡ ´ÜÆíÈ­ µÇ¾úÀ» °¡´É¼ºÀÌ ÀÖÀ½. ¹«°Å¿î(FULL JOINÀ̰ųª ÀÓ½ÃÅ×À̺íÀ» ¸¸µå´Â)Äõ¸®µéÀÌ ÀÓ½ÃÅ×ÀÌºí¿¡¼­ µ¹±â ¶§¹®Àϱî? *sort,read,read_rnd,joinµîÀÇ buffer°ªµéÀ» ´Ã·Áµµ ´ÜÀÏ Ã³¸® »óȲ¿¡¼­´Â È¿°ú°¡ ¾øÀ½. ¿ÀÈ÷·Á ÁÙ¿©µµ ó¸® ¼Óµµ ´À·ÁÁöÁö ¾Ê¾ÒÀ½. *innodb_log_file_size º¯°æ ¹æ¹ý {{{ 1. shutdown mysql server 2. make backup of data and log files 3. remove InnoDB log files 4. set new value for innodb_log_file_size in my.cnf 5. start mysqld 6. check error logs to ensure everything went fine. }}}