Today I Learned, 2021-06-10
RDS ์ธ์คํด์ค ์ฌ์ด์ฆ ๋ณ๊ฒฝโ
- RDS Aurora Mysql ์ธ์คํด์ค ์ฌ์ด์ฆ ๋ณ๊ฒฝ์ ๋ณ๊ฒฝ ๋์์ด ์ฐ๊ธฐ ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ผ๋ฉด, ์ฝ๊ธฐ๊ฐ ์ฐ๊ธฐ๊ฐ ๋๋ FailOver Time ๋์ ์ฐ๊ธฐ๊ฐ ์ผ์์ ์ผ๋ก ์ค๋จ๋๋ฉฐ ๊ทธ ๊ธฐ๊ฐ์ ์ฝ 30์ด ์ ๋ ์์๋๋ค.
RDS ์ธ์ฝ๋ฉ ๋ณ๊ฒฝโ
ํ๋ผ๋ฏธํฐ ๊ทธ๋ฃน ๋ด ์๋ ์ค์ ๊ฐ์ ๋ณ๊ฒฝํ๋ค.
- character_set_client: utf8mb4
- character_set_connection: utf8mb4
- character_set_database: utf8mb4
- character_set_filesystem: utf8mb4
- character_set_results: utf8mb4
- character_set_server: utf8mb4
- collation_connection: utf8mb4_general_ci
- collation_server: utf8mb4_general_ci
ํ์ธํ๊ธฐ
show variables like 'c%';
์ธ์ฝ๋ฉ ์ง์ ๋ณ๊ฒฝํ๊ธฐ
alter database [DATABASE_NAME] character set = 'utf8' collate = 'utf8_general_ci';
RDS ๋๋ฆฐ ์ฟผ๋ฆฌ ๋ก๊ทธ ์ค์ โ
- RDS ์ค์ ์์
๋๋ฆฐ ์ฟผ๋ฆฌ ๋ก๊ทธ
๋ฅผ ์ฒดํฌํ์๋ค๊ณ ๋๋ฆฐ ์ฟผ๋ฆฌ ๋ก๊ทธ๊ฐ CloudWatch Logs ์ ์์ด์ง ์๋๋ค. ํ๋ผ๋ฏธํฐ ๊ทธ๋ฃน์์slow_query_log
๋ฅผtrue(1)
๋ก ๋ณ๊ฒฝํด์ฃผ์ด์ผ ํ๋ค. - ๋๋ฆฐ ์ฟผ๋ฆฌ์ ํ๋จ ๊ธฐ์ค ์ญ์ ํ๋ผ๋ฏธํฐ ๊ทธ๋ฃน์์ ์ง์ ํ ์ ์์ผ๋ฉฐ,
long_query_time
๋ฅผ ์์ ํ๋ฉด ๋๋ค. ๊ธฐ๋ณธ๊ฐ์ 10์ด. log_queries_not_using_indexes
์1
๋ก ๋ณ๊ฒฝํ๋ฉด ์ธ๋ฑ์ค๋ฅผ ํ์ง ์๋ ๋ชจ๋ ์ฟผ๋ฆฌ๋ฅผ ๋๋ฆฐ ์ฟผ๋ฆฌ๋ก ๊ธฐ๋กํ๋ค.
์ฐธ๊ณ โ
No appropriate protocol (protocol is disabled or cipher suites are inappropriate)โ
Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
at sun.security.ssl.HandshakeContext.<init>(HandshakeContext.java:171) ~[na:1.8.0_292]
at sun.security.ssl.ClientHandshakeContext.<init>(ClientHandshakeContext.java:98) ~[na:1.8.0_292]
at sun.security.ssl.TransportContext.kickstart(TransportContext.java:220) ~[na:1.8.0_292]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:428) ~[na:1.8.0_292]
at com.mysql.cj.protocol.ExportControlled.performTlsHandshake(ExportControlled.java:317) ~[mysql-connector-java-8.0.23.jar:8.0.23]
at com.mysql.cj.protocol.StandardSocketFactory.performTlsHandshake(StandardSocketFactory.java:188) ~[mysql-connector-java-8.0.23.jar:8.0.23]
at com.mysql.cj.protocol.a.NativeSocketConnection.performTlsHandshake(NativeSocketConnection.java:97) ~[mysql-connector-java-8.0.23.jar:8.0.23]
at com.mysql.cj.protocol.a.NativeProtocol.negotiateSSLConnection(NativeProtocol.java:333) ~[mysql-connector-java-8.0.23.jar:8.0.23]
... 91 common frames omitted