[오픈소스컨설팅]Day #1 MySQL 엔진소개, 튜닝, 백업 및 복구, 업그레이드방법Ji-Woong ChoiMySQL 소개
간략한 소개
version history
MySQL 사용처
제품 군 변화
시장 변화
MySQL 구성
MySQL 클라이언트 / 서버 개념
클라이언트 프로그램
MySQL 설치
MySQL 버전
MySQL 설치
MySQL 환경 설정
환경설정, 변수 설정
MySQL 스토리지 엔진 소개
MySQL tuning 소개 및 방법
데이터 백업/복구 방법
백업
복구
MySQL Upgrade
AWS 환경에서 MySQL Infra 설계하기-2부.본론I Goo LeeMySQL PowerGroup Tech Seminar (2016.1)
- 5.AWS 환경에서 MySQL Infra 설계하기-2부.본론 (by 김상필)
- URL : cafe.naver.com/mysqlpg
[2018] MySQL 이중화 진화기NHN FORWARD24시간 365일 서비스를 위한 MySQL DB 이중화.
MySQL 이중화 방안들에 대해 알아보고 운영하면서 겪은 고민들을 이야기해 봅니다.
목차
1. DB 이중화 필요성
2. 이중화 방안
- HW 이중화
- MySQL Replication 이중화
3. 이중화 운영 장애
4. DNS와 VIP
5. MySQL 이중화 솔루션 비교
대상
- MySQL을 서비스하고 있는 인프라 담당자
- MySQL 이중화에 관심 있는 개발자
MariaDB 마이그레이션 - 네오클로바NeoClova사례로 알아보는 MariaDB 마이그레이션
현대적인 IT 환경과 애플리케이션을 만들기 위해 우리는 오늘도 고민을 거듭합니다. 최근 들어 오픈소스 DB가 많은 업무에 적용되고 검증이 되면서, 점차 무거운 상용 데이터베이스를 가벼운 오픈소스 DB로 전환하는 움직임이 대기업의 미션 크리티컬 업무까지로 확산하고 있습니다. 이는 클라우드 환경 및 마이크로 서비스 개념 확산과도 일치하는 움직임입니다.
상용 DB를 MariaDB로 이관한 사례를 통해 마이그레이션의 과정과 효과를 살펴 볼 수 있습니다.
MariaDB로 이관하는 것은 어렵다는 생각을 막연히 가지고 계셨다면 본 자료를 통해 이기종 데이터베이스를 MariaDB로 마이그레이션 하는 작업이 어렵지 않게 수행될 수 있다는 점을 실제 사례를 통해 확인하시길 바랍니다.
웨비나 동영상
https://www.youtube.com/watch?v=xRsETZ5cKz8&t=52s
MySQL Administrator 2021 - 네오클로바NeoClova
MySQL Administrator
Basic course
- MySQL 개요
- MySQL 설치 / 설정
- MySQL 아키텍처 - MySQL 스토리지 엔진
- MySQL 관리
- MySQL 백업 / 복구
- MySQL 모니터링
Advanced course
- MySQL Optimization
- MariaDB / Percona
- MySQL HA (High Availability)
- MySQL troubleshooting
네오클로바
http://neoclova.co.kr/
Percona server for MySQL 제품 소개NeoClovaⅠ. Percona Server for MySQL
1. Introduction
2. Storage Engine
3. Percona Server’s History
4. DBMS Comparison
5. Benchmark
Ⅱ. Percona Server 5.7
1. New feature
2. Performance
3. Scalability
4. Flexibility
5. Reliability
6. Management
7. Diagnostics
Ⅲ. Percona Server 구축사례
1. Reference
넥슨 글로벌 플랫폼 구축 이야기 : DB Migration case study (임현수 플랫폼인프라실 Technical Manager, 넥...Amazon Web Services Korea넥슨 글로벌 플랫폼 구축 이야기 : DB Migration case study
이 세션에서는 넥슨의 Case study를 통하여 글로벌플랫폼 구축을 위해 기존 플랫폼을 AWS로 Migration하는 과정 및 발생가능한 이슈를 공유합니다. 넥슨이 DB서버를 이전하는 과정 속에서 마주한 기술적 고민과 이슈를 통하여 AWS 활용 시 고려해야 할 부분들에 대해 소개하고 함께 이야기 나누고자 합니다.
[오픈소스컨설팅]Day #1 MySQL 엔진소개, 튜닝, 백업 및 복구, 업그레이드방법Ji-Woong ChoiMySQL 소개
간략한 소개
version history
MySQL 사용처
제품 군 변화
시장 변화
MySQL 구성
MySQL 클라이언트 / 서버 개념
클라이언트 프로그램
MySQL 설치
MySQL 버전
MySQL 설치
MySQL 환경 설정
환경설정, 변수 설정
MySQL 스토리지 엔진 소개
MySQL tuning 소개 및 방법
데이터 백업/복구 방법
백업
복구
MySQL Upgrade
AWS 환경에서 MySQL Infra 설계하기-2부.본론I Goo LeeMySQL PowerGroup Tech Seminar (2016.1)
- 5.AWS 환경에서 MySQL Infra 설계하기-2부.본론 (by 김상필)
- URL : cafe.naver.com/mysqlpg
[2018] MySQL 이중화 진화기NHN FORWARD24시간 365일 서비스를 위한 MySQL DB 이중화.
MySQL 이중화 방안들에 대해 알아보고 운영하면서 겪은 고민들을 이야기해 봅니다.
목차
1. DB 이중화 필요성
2. 이중화 방안
- HW 이중화
- MySQL Replication 이중화
3. 이중화 운영 장애
4. DNS와 VIP
5. MySQL 이중화 솔루션 비교
대상
- MySQL을 서비스하고 있는 인프라 담당자
- MySQL 이중화에 관심 있는 개발자
MariaDB 마이그레이션 - 네오클로바NeoClova사례로 알아보는 MariaDB 마이그레이션
현대적인 IT 환경과 애플리케이션을 만들기 위해 우리는 오늘도 고민을 거듭합니다. 최근 들어 오픈소스 DB가 많은 업무에 적용되고 검증이 되면서, 점차 무거운 상용 데이터베이스를 가벼운 오픈소스 DB로 전환하는 움직임이 대기업의 미션 크리티컬 업무까지로 확산하고 있습니다. 이는 클라우드 환경 및 마이크로 서비스 개념 확산과도 일치하는 움직임입니다.
상용 DB를 MariaDB로 이관한 사례를 통해 마이그레이션의 과정과 효과를 살펴 볼 수 있습니다.
MariaDB로 이관하는 것은 어렵다는 생각을 막연히 가지고 계셨다면 본 자료를 통해 이기종 데이터베이스를 MariaDB로 마이그레이션 하는 작업이 어렵지 않게 수행될 수 있다는 점을 실제 사례를 통해 확인하시길 바랍니다.
웨비나 동영상
https://www.youtube.com/watch?v=xRsETZ5cKz8&t=52s
MySQL Administrator 2021 - 네오클로바NeoClova
MySQL Administrator
Basic course
- MySQL 개요
- MySQL 설치 / 설정
- MySQL 아키텍처 - MySQL 스토리지 엔진
- MySQL 관리
- MySQL 백업 / 복구
- MySQL 모니터링
Advanced course
- MySQL Optimization
- MariaDB / Percona
- MySQL HA (High Availability)
- MySQL troubleshooting
네오클로바
http://neoclova.co.kr/
Percona server for MySQL 제품 소개NeoClovaⅠ. Percona Server for MySQL
1. Introduction
2. Storage Engine
3. Percona Server’s History
4. DBMS Comparison
5. Benchmark
Ⅱ. Percona Server 5.7
1. New feature
2. Performance
3. Scalability
4. Flexibility
5. Reliability
6. Management
7. Diagnostics
Ⅲ. Percona Server 구축사례
1. Reference
넥슨 글로벌 플랫폼 구축 이야기 : DB Migration case study (임현수 플랫폼인프라실 Technical Manager, 넥...Amazon Web Services Korea넥슨 글로벌 플랫폼 구축 이야기 : DB Migration case study
이 세션에서는 넥슨의 Case study를 통하여 글로벌플랫폼 구축을 위해 기존 플랫폼을 AWS로 Migration하는 과정 및 발생가능한 이슈를 공유합니다. 넥슨이 DB서버를 이전하는 과정 속에서 마주한 기술적 고민과 이슈를 통하여 AWS 활용 시 고려해야 할 부분들에 대해 소개하고 함께 이야기 나누고자 합니다.
MySQL operator for_kubernetesrockplace2021년 11월 18일(목)
- 14:00 ~ 15:00 MySQL Operator for Kubernetes
:Kubernetes 환경에서 MySQL에 대한 더 쉬운 운영
- 15:00 ~ 15:15MySQL HA and Auto-Failover
: MySQL replication과 오픈소스 MHA를 통한 고가용성 확보
DB innovation conference 2020NAVER CLOUD PLATFORMㅣ네이버 클라우드 플랫폼네이버클라우드플랫폼에서 제공하는 클라우드 데이터베이스 서비스를 소개하고, 네이버클라우드 플랫폼의 클라우드 데이터베이스 관리 노하우에 대해 소개합니다 | Introduce cloud database services provided by Naver Cloud Platform and know-how of managing cloud databases on Naver Cloud Platform
[Retail & CPG Day 2019] 마켓컬리 서비스 AWS 이관 및 최적화 여정 - 임상석, 마켓컬리 개발 리더Amazon Web Services Korea[Retail & CPG Day 2019] 마켓컬리 서비스 AWS 이관 및 최적화 여정 - 임상석, 마켓컬리 개발 리더
Azure Databases for PostgreSQL MYSQL and MariaDBrockplace-Table of Contents-
1) Azure Databases for OSS DB
2) Azure Databases Service Features
3) OSS DBs Migration Strategy
4) Pre-Migration
5) Migration
Backup automation in KAKAO I Goo LeeThis document discusses strategies for automating remote database backups across multiple data centers. It recommends scheduling backups automatically after a queue time to use underutilized backup servers. The backup manager would select the target backup server based on its service zone, data center location, and available quota to balance load. It would also avoid using the same backup server consecutively and start backups at different times each day to improve reliability in case of failures.
MySQL 5.7 NF – JSON Datatype 활용I Goo LeeThis document discusses MySQL 5.7's JSON datatype. It introduces JSON and why it is useful for integrating relational and schemaless data. It covers creating JSON columns, inserting and selecting JSON data using functions like JSON_EXTRACT. It discusses indexing JSON columns using generated columns. Performance is addressed, showing JSON tables can be 40% larger with slower inserts and selects compared to equivalent relational tables without indexes. Options for stored vs virtual generated columns are presented.
Intro KaKao MRTE (MySQL Realtime Traffic Emulator)I Goo LeeThe document describes the process of opening a TCP connection between a client and MySQL database, including the initial handshake and response packets. It then explains how the MRTE-Collector works by using message queues to capture and parse MySQL packets from the source database, and replay them to the target database using multiple SQL player threads. The MRTE-Collector publishes messages to RabbitMQ queues which routes the messages to the proper queues subscribed by MRTE-Player.
MySQL Slow Query log Monitoring using Beats & ELKI Goo LeeThis document provides instructions for using Filebeat, Logstash, Elasticsearch, and Kibana to monitor MySQL slow query logs. It describes installing and configuring each component, with Filebeat installed on database servers to collect slow query logs, Logstash to parse and index the logs, Elasticsearch for storage, and Kibana for visualization and dashboards. Key steps include configuring Filebeat to ship logs to Logstash, using grok filters in Logstash to parse the log fields, outputting to Elasticsearch, and visualizing slow queries and creating sample dashboards in Kibana.
MySQL Audit using Percona audit plugin and ELKI Goo LeeThis document discusses setting up MySQL auditing using the Percona Audit Plugin and ELK (Elasticsearch, Logstash, Kibana). It describes installing and configuring the Percona Audit Plugin on MySQL servers to generate JSON audit logs. It then covers using Rsyslog or Filebeat to ship the logs to the Logstash server, and configuring Logstash to parse, enrich, and index the logs into Elasticsearch. Finally, it discusses visualizing the audit data with Kibana dashboards containing graphs and searching. The architecture involves MySQL servers generating logs, Logstash collecting and processing them, and Elasticsearch and Kibana providing search and analytics.
Intro ProxySQLI Goo LeeThis document provides an overview and instructions for installing and configuring ProxySQL. It discusses:
1. What ProxySQL is and its functions like load balancing and query caching
2. How to install ProxySQL on CentOS and configure the /etc/proxysql.cnf file
3. How to set up the ProxySQL schema to define servers, users, variables and other settings needed for operation
4. How to test ProxySQL functions like server status changes and benchmark performance
오픈소스로 만드는 DB 모니터링 시스템 (w/graphite+grafana)I Goo LeeMySQL PowerGroup Tech Seminar (2015.2)
- 2.오픈소스로 만드는 DB 모니터링 시스템 (w/graphite+grafana) (by 유승민)
- URL : cafe.naver.com/mysqlpg
6. 1. Mysql to PDA (ETL)
04
data sync time
ETL Disadvantages.
• 동기화 해야할 테이블에 Update컬럼 필요.
• delete된 데이터를 찾기 어려움.
• 데이터 변경시 꼭 update 변경
7. 1. Mysql to PDA (ETL)
05
Future Direction
DQ 구축
• 프로그램에서 소프트 delete 로 진행.
• PDA 와 Mysql 데이터 정합성 체크.
• 주기적으로 삭제된 데이터 클린징작업.
8. 2. Mysql to Hadoop ( CDC )
06
Tungsten Replicator
• Data source로 부터 변경된 Data를 Capture하여 Target system에 전송 및 적용
하는 기능을 CDC(Change Data Capture) 라고 하며, 'Tungsten replicator'는 CDC
솔루션 중에 하나.
9. 2. Mysql to Hadoop ( CDC)
07
Tungsten Replicator Status
tungsten@tungst-mdb-prod02-mp tungsten-replicator]$ trepctl -service beta status
Processing status command...
NAME VALUE
---- -----
appliedLastEventId : mysql-bin.000018:0000000243151388;-1 /적용된 bin-log filename & position 정보
appliedLastSeqno : 1397760 /적용된 THL log의 시퀀스 번호
appliedLatency : 1.004 /지연시간
autoRecoveryEnabled : false
autoRecoveryTotal : 0
channels : 1
clusterName : beta /클러스터이름
currentEventId : NONE
currentTimeMillis : 1406271486322
dataServerHost : 10.10.10.80
extensions :
host : 10.10.10.80
latestEpochNumber : 490494 /master와 slave간의 동기화가 잘 되고 있다면 같은 번호를 가지고 있지만,
번호가 틀려지게 되는 data누락으로 인식하고 offline으로 상태값이 변경된다.
masterConnectUri : thl://10.10.52.181:2112/
masterListenUri : thl://10.10.10.80:2113/
maximumStoredSeqNo : 1397760 /적용된 THL log의 시퀀스 번호
resourcePrecedence : 99
rmiPort : 10000
role : slave
seqnoType : java.lang.Long
serviceName : beta
serviceType : local
simpleServiceName : beta
siteName : default
sourceId : 10.10.10.80
state : ONLINE /tungsten replicator의 status값
timeInStateSeconds : 20162.482
transitioningTo :
Finished status command...
10. 2. Mysql to Hadoop ( CDC)
08
Mysql to HDFS 구성도
11. 2. Mysql to Hadoop ( CDC) 09
tungsten csv file list
tungsten csv file contents
13. 3.Mysql to Kafka ( Maxwell)
11
Maxwell(http://maxwells-daemon.io/)
• zendesk의 오픈소스
• kafka에 json형식의 데이터 적제.
• 메타정보 동기화 필요 없음. DDL문제점 해결.
• 동기화 대상 DB 로그 포맷을 row-base로 설정.
• ACL에 replication client, replication slave 권한 부여.
• mysqlbinlog-connector-java 를 사용함.
The REPLICATION CLIENT privilege enables the use of SHOW MASTER STATUS and
SHOW SLAVE STATUS. In MySQL 5.6.6 and later, it also enables the use of the
SHOW BINARY LOGS statement.
The REPLICATION SLAVE privilege should be granted to accounts that are used by slave
servers to connect to the current server as their master. Without this privilege,
the slave cannot request updates that have been made to databases on the master server.
14. 3.Mysql to Kafka ( Maxwell)
11
mysql> insert into test.e set m = 4.2341, c = now(3)
, comment = 'I am a creature of light.';
{
"database":"test",
"table":"e",
"type":"insert",
"ts":1477053217,
"xid":23396,
"commit":true,
"position":"master.000006:800911",
"server_id":23042,
"thread_id":108,
"data":{
"id":1,
"m":4.2341,
"c":"2016-10-21 05:33:37.523000",
"comment":"I am a creature of light."
}
}
mysql> update test.e set m = 5.444, c = now(3)
where id = 1;
{
"database":"test",
"table":"e",
"type":"update",
"ts":1477053234,
...
"data":{
"id":1,
"m":5.444,
"c":"2016-10-21 05:33:54.631000",
"comment":"I am a creature of light."
},
"old":{
"m":4.2341,
"c":"2016-10-21 05:33:37.523000"
}
}
15. 4. Mysql to AWS-Redshift (DMS)
11
What is Redshift?
• AWS 의 대용량 분석시스템.
• Compute Node.
• 데이터 보유
• 데이터 처리
• shared nothing.
• Leader Node.
• 커넥션 처리
• SQL 해석
• 실행계획 수립
• 코드 컴파일 등.
16. 4. Mysql to AWS-Redshift (DMS)
11
Redshift 데이터 로드 .
• Loading data from AWS S3 into Redshift
COPY [redshift_table_nm]
FROM '[s3 sam file name]'
CREDENTIALS 'aws_access_key_id=[YOUR-ACCESS-KEY];aws_secret_access_key=[YOUR-SECRET-KEY]'
/*
-- OPTIONS
*/
17. 4. Mysql to AWS-Redshift (DMS)
11
What is DMS .
• AWS 의 Migrationservice.
• ETL , CDC .