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

supsup   
   Á¶È¸ 1611   Ãßõ 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 245/5636
2014-05   4734172   Á¤ÀºÁØ1
2015-12   1280332   ¹é¸Þ°¡
03-30   1244   Nicoffeine
2021-12   1244   pfakdmv
2023-03   1244   ½º¹«ÇÁ
2022-02   1244   UDION52
2023-03   1244   È­¶õ
2023-10   1244   atozztoa
2023-11   1244   ¼ÇÇѸÆÁÖ
03-11   1244   ±è½ÂÈÆ
2023-01   1245   ȸ¿ø
2022-04   1245   Mode
02-08   1245   ¸®¿À
2022-11   1245   ¹«¹ýÀÚ
2023-10   1245   newretrowave
2022-09   1245   slowcity
2019-05   1245   À¯·ÉEÁ¤ÇØÁØ
02-08   1245   ÁÒ½´¾Æ
2023-06   1245   ³ª³ª³ª³ª³ª
2023-11   1245   Á߸³±â¾î¿ÀÅä
2022-11   1245   ¸¶¹ý»ç¿ÀÁî
2022-04   1245   ¶¥ºÎÀÚ