웹호스팅
2024.05.03 17:10

innoDB 메모리 설정 방법

조회 수 15 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부

<CPU 사용률이 오르다가 innoDB 메모리 설정 후 안정을 찾은 모습>


출처 : [mysql]innodb 메모리별 설정값 예시 (tistory.com)

대형 커뮤니티 사이트를 통큰 서버에 입주시켰습니다.

입주시키자마다 속도 저하로 이용할 수 없는 지경에 ㅠㅠ

다행히 innoDB 메모리 설정을 해주니 원활하게 이용 가능하게 됐습니다.


[client]

port=3306

socket=/run/mysqld/mysqld.sock

default-character-set=utf8mb4


[mysql]

default-character-set=utf8mb4


[mysqld_safe]

socket=/run/mysqld/mysqld.sock


[mysqld]

user=mysql

pid-file=/run/mysqld/mysqld.pid

socket=/run/mysqld/mysqld.sock

port=3306

basedir=/usr

datadir=/var/lib/mysql

tmpdir=/tmp

lc-messages-dir=/usr/share/mysql

log_error=/var/log/mysql/error.log

collation-server = utf8mb4_unicode_520_ci

init-connect='SET NAMES utf8mb4'

character-set-server = utf8mb4


symbolic-links=0

local-infile=0


skip-external-locking

key_buffer_size = 512M

max_allowed_packet = 64M

table_open_cache = 512

sort_buffer_size = 32M

read_buffer_size = 32M

read_rnd_buffer_size = 40M

myisam_sort_buffer_size = 64M

thread_cache_size = 32

query_cache_size= 64M


#innodb_use_native_aio = 0

default_storage_engine = InnoDB

innodb_buffer_pool_size = 48G

innodb_file_per_table = 1

innodb_log_file_size = 256M

innodb_buffer_pool_instances = 8

innodb_flush_log_at_trx_commit = 0

innodb_flush_method = O_DSYNC

innodb_io_capacity = 15000


max_connections=2000

max_user_connections=1000

wait_timeout=120

interactive_timeout=120

long_query_time=60


!includedir /etc/mysql/conf.d/

!includedir /etc/mysql/mariadb.conf.d/


기존대댓글
추가시작 대댓글시작
대댓글끝 추가끝


List of Articles
번호 분류 제목 조회 수 추천 수
20 리눅스 NGINX PHP-FPM 업데이트 및 여러 버전 동시 연동 방법 136 0
19 웹호스팅 http://rael.me/support.php secret 0 0
18 VPS 리노드에서 서비스 변경했습니다. (160달러 -> 10달러로) file 98 0
17 VPS 각종 클라우드 VPS 서비스 비교해본 소감 395 0
16 서버관리 Mysql 비밀번호 변경하는 방법 69 0
15 서버관리 신규 유저 생성 270 0
14 서버관리 소유자 권한 설정 258 0
13 서버관리 압축해제 267 0
12 VPS Linode VPS 디스크 용량 변경 방법 file 99 0
11 웹호스팅 HestiaCP 설치방법 file 12 0
10 리눅스 리눅스 그룹 생성/삭제/확인/추가 - groupadd file 18 0
9 웹호스팅 HestiaCP 사용방법 12 0
8 기타 해외 호스팅의 결제 및 환불 (a2hosting 환불 했습니다.) file 354 0
7 리눅스 CentOS PHP/PHP-FPM 설치방법 24 0
6 리눅스 리스토리의 IT's/IT Story Mysql 설치후 phpMyadmin 접속 안될때 - Cannot start session 26 0
» 웹호스팅 innoDB 메모리 설정 방법 file 15 0
4 서버관리 아파치 재실행 229 0
3 VPS 국내 클라우드 서버호스팅 비교(Virtual Private Server Review) 318 0
2 웹호스팅 사이트 백업하는 방법 132 1
1 리눅스 Htop (Linux Process Monitoring) 사용법 file 1411 1
Board Pagination Prev 1 2 Next
/ 2
닫기

마이페이지

로그인을 해주세요

네이버로 로그인