mariaDB ¹ÙÀ̳ʸ® ·Î±× ¹é¾÷ ÈÄ Àç»ç¿ë °ü·Ã Áú¹®

supsup   
   Á¶È¸ 1418   Ãßõ 0    

안녕하세요

mariaDB MHA으로 이중화가 되어있는데 이중화가 끊겨 재연결하는 작업이 필요합니다..

저번주 수요일날 연결이 끊겨 재연결 작업 일정이 내일인데요.. 바이너리 로그 보관 디폴트설정이 7일으로 알고있습니다.

보관주기를 변경하는 방법이 제일 좋겟지만 디비 재시작이 불가능해서.. 저번주 수요일 바이너리로그를 백업 후 내일 다시 넣어서 레플리케이션으로 복구가 가능한걸까요..?

데이터가 1테라가 넘어 디비데이터를 그대로 넣는건 시간이 좀 소요될듯하여 해당방법으로 진행해볼려고합니다!

답변주시면 감사하겠습니다! 

ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
Dreaday 2023-05
¹ÙÀ̳ʸ® º¸°ü ±â°ü °ü·ÃÀº global variable º¯°æÇϸéµÇÁö ¾Ê³ª¿ä ?

binlog_expire_logs_seconds
Description: If non-zero, binary logs will be purged after binlog_expire_logs_seconds seconds. Possible purges happen at startup and at binary log rotation. From MariaDB 10.6.1, binlog_expire_logs_seconds and expire_logs_days are forms of aliases, such that changes to one automatically reflect in the other.
Commandline: --binlog-expire-logs-seconds=#
Scope: Global, Session
Dynamic: Yes
Data Type: numeric
Default Value: 0
Range: 0 to 4294967295
Introduced: MariaDB 10.6.1
»ç³»µé 2023-05
10.6.0 ÀÌÇÏ ¹öÀüÀÌ¸é ¾Æ·¡ º¯¼öÀ̸ç, Default  °ªÀº 0À̹ǷΠÇöÀç ½Ã½ºÅÛ global ¼³Á¤ °ªÀ» È®ÀÎÇØ º¸±â ¹Ù¶ø´Ï´Ù.

expire_logs_days¢Ò
Description: Number of days after which the binary log can be automatically removed. By default 0, or no automatic removal. When using replication, should always be set higher than the maximum lag by any replica. Removals take place when the server starts up, when the binary log is flushed, when the next binary log is created after the previous one reaches the maximum size, or when running PURGE BINARY LOGS. Units are whole days (integer) until MariaDB 10.6.0, or 1/1000000 precision (double) from MariaDB 10.6.1.
Starting from MariaDB 10.6.1, expire_logs_days and binlog_expire_logs_seconds are forms of aliases, such that changes to one automatically reflect in the other.
Commandline: --expire-logs-days=#
Scope: Global
Dynamic: Yes
Data Type: numeric
Default Value: 0.000000 (>= MariaDB 10.6.1), 0 (<= MariaDB 10.6.0)
Range: 0 to 99
¿øº» ¹é¾÷ÈÄ ÀÛ¾÷Çϼ¼¿ä.

DB º¹»çº»À» ¿·¿¡ ¸¸µé°í ÀÛ¾÷Çϼ¼¿ä.


QnA
Á¦¸ñPage 183/5590
2014-05   4480234   Á¤ÀºÁØ1
2015-12   1031559   ¹é¸Þ°¡
2023-05   1178   À̸ŸÁ·®2
2023-05   1306   ÄÚÄ«¸Æ
2023-05   2809   À嵿°Ç2014
2023-05   1660   ÁÒ½´¾Æ
2023-05   2090   ÀÓ¸í»ó
2023-05   1406   ¹üÀÌ´Ô
2023-05   1907   grzlr
2023-05   2582   ÁÒ½´¾Æ
2023-05   953   È¥ÀÚ°¡´Â±æ
2023-05   1168   pumkin
2023-05   1595   ¹Ú¹®Çü
2023-05   1856   ¸¶¹ý»ç¿ÀÁî
2023-05   1360   À̸ŸÁ·®2
2023-05   1603   ¿À¼º±â
2023-05   1383   À̸ŸÁ·®2
2023-05   1248   Àϱ¹
2023-05   2709   studentÇлý
2023-05   953   À̸ŸÁ·®2
2023-05   980   ¸í¶û
2023-05   1474   À̸ŸÁ·®2