웹호스팅
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/


Who's 이온디

profile

라이믹스는 이온디와 함께

Atachment
첨부 '1'
기존대댓글
추가시작 대댓글시작
대댓글끝 추가끝


List of Articles
번호 분류 제목 조회 수 추천 수
40 웹호스팅 사이트 백업하는 방법 132 1
39 리눅스 Htop (Linux Process Monitoring) 사용법 file 1414 1
38 웹호스팅 [해외]a2hosting 178 0
37 웹호스팅 웹호스팅에서 php 설정 변경하는 방법 30 0
36 리눅스 루분투 X61 배터리 정보 1 file 87 0
35 리눅스 리눅스 / 사용자 / 사용자 조회, 사용자 추가, 사용자 삭제, 사용자 수정 18 0
34 VPS Linode VPS의 새로운 콘트롤 패널 file 203 0
33 VPS 요즘 일방문자가 5000~6000씩 찍히는데 이유를 모르겠습니다. file 33 0
32 기타 해외도메인 구입 사이트 gandi.net 298 0
31 기타 무료 아마존 웹 서비스, 100% 알뜰하게 사용하는 방법 95 0
30 리눅스 리눅스 tar 특정폴더 제외하고 압축하기 235 0
29 웹호스팅 a2hosting 웹호스팅 단점/후회/불만 177 0
28 리눅스 top 에서 실행 중인 프로세스에서 어떤 파일이 사용되는지 파악하는 방법 file 58 0
27 리눅스 [Laravel] 라라벨 설치하기 PHP7.0 + Nginx 5 file 265 0
26 리눅스 How to remove imagemagick from Ubuntu 16.04 (Xenial Xerus) 187 0
25 서버관리 서버 이전 161 0
24 서버관리 신규 사용자 생성 secret 0 0
23 리눅스 pstree 현재 사용자 프로세스 확인 189 0
22 리눅스 postfix 메일에서 queue 관리 152 0
21 서버관리 mysqldump not found 374 0
Board Pagination Prev 1 2 Next
/ 2
닫기

마이페이지

로그인을 해주세요

네이버로 로그인