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

supsup   
   Á¶È¸ 1491   Ãßõ 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 2771/5615
2015-12   1155464   ¹é¸Þ°¡
2014-05   4606939   Á¤ÀºÁØ1
2017-09   3491   ÄĹÚ
2015-08   3328   jack33
2018-12   2386   ¹«¾Æ
2014-04   3316   ÇϾçÆĵµ
2015-08   7057   ¹Ú
2012-03   5594   ½Ì±¹³¯°­µµ
2014-04   2722   Çà¾Æ¹ü
2016-08   3287   twopaik
2023-01   2880   º¸ÅÁ
2015-08   3297   ´Ù¿Â
2018-12   4650   ºÎ»ê°ñµ¿Ç°
2021-05   2097   ȲÁø¿ì
2020-02   9273   ºí·ç¿µ»ó
2015-08   3345   ¹ä¹¹¸ÔÁö
2012-04   8068   ¾ÈÇü°ï
2023-01   767   ȸ¿ø
2012-05   9145   Ȳ¼º¿ø
2017-09   3339   ´ëÇѹα¹
2017-09   4086   ¾Æ½½·¹ÀÌ
2015-09   3348   ¾Æ¸§´Ù¿î³ëÀ»