반응형

Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 116393
Server version: 10.2.15-MariaDB-log MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> show processlist;
+--------+-------------+-----------------------+-------+---------+------+--------------------------+------------------+----------+
| Id     | User        | Host                  | db    | Command | Time | State                    | Info             | Progress |
+--------+-------------+-----------------------+-------+---------+------+--------------------------+------------------+----------+
|      1 | system user |                       | NULL  | Daemon  | NULL | InnoDB purge coordinator | NULL             |    0.000 |
|      2 | system user |                       | NULL  | Daemon  | NULL | InnoDB purge worker      | NULL             |    0.000 |
|      4 | system user |                       | NULL  | Daemon  | NULL | InnoDB purge worker      | NULL             |    0.000 |
|      3 | system user |                       | NULL  | Daemon  | NULL | InnoDB purge worker      | NULL             |    0.000 |
|      5 | system user |                       | NULL  | Daemon  | NULL | InnoDB shutdown handler  | NULL             |    0.000 |

| 116393 | root        | localhost             | NULL  | Query   |    0 | init                     | show processlist |    0.000 |
+--------+-------------+-----------------------+-------+---------+------+--------------------------+------------------+----------+
MariaDB [(none)]>

 

mariadb 10.0.14에서 10.2.15로 업그레이드 후 처음 보는 프로세스가 5개가 떠 있다.

저게 뭐하는 걸까 찾아보았다.

1.InnoDB purge coordinator
2.InnoDB purge worker
3.InnoDB shutdown handler

 

1. InnoDB purge coordinator / worker

- InnoDB purge coordinator 및 worker는 InnoDB에서 purge 작업을 진행하기 위해 필요한 프로세스 입니다.
InnoDB의 purge 기능이란 데이터의 변경이 발생하였을 때, 다른 트랜잭션의 읽기 일관성(MVCC)을 위해 변경 전의 데이터를 롤백 세그먼트에 기록해두게 되는데, 이 데이터가 더 이상 필요하지 않게 될 경우 해당 세그먼트를 재사용하기 위해 청소하는 것을 의미합니다.
Purge를 수행하게 되면 쿼리의 성능 저하를 방지할 수 있고, 변경 및 삭제된 자료들이 차지하고 있는 디스크 공간을 확보할 수 있게 됩니다.
InnoDB purge worker 프로세스는 그런 purge 작업을 실제로 수행하는 프로세스이며, InnoDB purge coordinator는 언제 어떤 worker가 purge 작업을 수행할지 관리하는 프로세스입니다.

InnoDB purge coordinator -> rollback segment 재사용(purge) 스케줄러

InnoDB purge worker -> rollback segment 재사용(purge) 수행 프로세스

 

2. InnoDB shutdown handler

InnoDB shutdown handler 프로세스는 InnoDB가 종료 시 안정성을 높이기 위해서 추가된 프로세스입니다.
해당 프로세스는 InnoDB 종료 전 buffer flush와 같이 반드시 수행되어야 하는 일들을 모두 수행 후 shutdown이 될 수 있도록 해줍니다

InnoDB shutdown handler -> InnoDB 종료시 buffer flush 프로세스(데이터 안정성 up)

 

참조사이트

: https://support.s-core.co.kr/hc/ko/articles/360000537081-MariaDB-10-2-%EB%B6%80%ED%84%B0-%EC%83%9D%EA%B8%B4-%EC%83%88%EB%A1%9C%EC%9A%B4-%ED%94%84%EB%A1%9C%EC%84%B8%EC%8A%A4%EB%93%A4%EC%9D%80-%EB%AD%94%EA%B0%80%EC%9A%94-

반응형
블로그 이미지

dung beetle

취미는 데이터 수집 직업은 MYSQL과 함께 일하는 DBA의 소소한 일상 이야기

,