| 123456789101112131415161718192021222324252627 |
- {
- "4cad62f91891022358c0f57587ca507a045c08328d216582e02511cb951f7d62": {
- "original": "* `0` - Data is written to disk (flushed) every second, and Manticore initiates making it secure on the disk ([syncing](https://linux.die.net/man/8/sync)) right after flushing. This method is the fastest, but if the server or computer crashes suddenly, some recently written data that hasn't been secured may be lost.\n* `1` - Data is written to the binlog and synced immediately after each transaction. This method is the safest as it ensures that each change is immediately preserved, but it slows down writing.\n* `2` - Data is written after each transaction, and a sync is initiated every second. This approach offers a balance, writing data regularly and quickly. However, if the computer fails, some of the data that was being secured might not finish saving. Also, syncing may take longer than one second depending on the disk.\n* `3` - Similar to `2`, but it also ensures the binlog file is synced before it is closed due to exceeding `binlog_max_log_size`.\n\nThe default mode is `2`, which writes data after each transaction and starts syncing it every second, balancing speed and safety.\n\n<!-- request Example -->\nCODE_BLOCK_8\n<!-- end -->\n\n### Cluster binlog support\n\n<!-- Example binlog_cluster -->\nIn a cluster setup using Galera, node recovery behavior is crucial. Normally, Galera handles node desynchronization via IST (incremental state transfer) if the node was shut down cleanly and its last sequence number (seqno) was properly saved. However, in case of a crash where seqno isn't preserved, Galera will trigger an SST (state snapshot transfer), which is resource-intensive and can significantly slow down the cluster due to high I/O activity.\n\nTo address this, cluster binlog support has been introduced. This feature extends the existing binary logging functionality to help reduce the need for SST by allowing a recovering node to replay missing transactions from local binlogs and rejoin the cluster with a valid seqno.\n\nCluster binlog is enabled by default for any cluster operations. However, it can be disabled by setting the environment variable:\n\n<!-- request binlog_cluster -->\nCODE_BLOCK_9\n<!-- end -->\n\nThis feature reduces downtime and avoids full data transfers by combining the local durability of binary log with Galera distributed sync capabilities.\n\n### Recovery\n\nDuring recovery after an unclean shutdown, binlogs are replayed, and all logged transactions since the last good on-disk state are restored. Transactions are checksummed, so in case of binlog file corruption, garbage data will **not** be replayed; such a broken transaction will be detected and will stop the replay.\n\n### Flushing RT RAM chunks\n\n<!-- Example rt_flush_period -->\nIntensive updates to a small RT table that fully fits into a RAM chunk can result in an ever-growing binlog that can never be unlinked until a clean shutdown. Binlogs essentially serve as append-only deltas against the last known good saved state on disk, and they cannot be unlinked unless the RAM chunk is saved. An ever-growing binlog is not ideal for disk usage and crash recovery time. To address this issue, you can configure `searchd` to perform periodic RAM chunk flushes using the `rt_flush_period` directive. With periodic flushes enabled, `searchd` will maintain a separate thread that checks whether RT table RAM chunks need to be written back to disk. Once this occurs, the respective binlogs can be (and are) safely unlinked.\n\nThe default RT flush period is set to 10 hours.\n\n<!-- request Example -->\nCODE_BLOCK_10\n<!-- end -->\n\nIt's important to note that `rt_flush_period` only controls the frequency at which checks occur. There are no guarantees that a specific RAM chunk will be saved. For example, it doesn't make sense to regularly re-save a large RAM chunk that only receives a few rows worth of updates. Manticore automatically determines whether to perform the flush using a few heuristics.\n\n<!-- proofread -->\n\n",
- "translations": {
- "chinese": "* `0` - \u6570\u636e\u6bcf\u79d2\u5199\u5165\u78c1\u76d8\uff08\u5237\u65b0\uff09\uff0c\u968f\u540e Manticore \u4f1a\u7acb\u5373\u542f\u52a8\u5c06\u5176\u5b89\u5168\u4fdd\u5b58\u5728\u78c1\u76d8\u4e0a\uff08[\u540c\u6b65](https://linux.die.net/man/8/sync)\uff09\u3002\u6b64\u65b9\u6cd5\u6700\u5feb\uff0c\u4f46\u5982\u679c\u670d\u52a1\u5668\u6216\u8ba1\u7b97\u673a\u7a81\u7136\u5d29\u6e83\uff0c\u53ef\u80fd\u4f1a\u4e22\u5931\u4e00\u4e9b\u5c1a\u672a\u5b89\u5168\u4fdd\u5b58\u7684\u6700\u8fd1\u5199\u5165\u6570\u636e\u3002\n* `1` - \u6570\u636e\u5728\u6bcf\u6b21\u4e8b\u52a1\u540e\u5199\u5165 binlog \u5e76\u7acb\u5373\u540c\u6b65\u3002\u6b64\u65b9\u6cd5\u6700\u5b89\u5168\uff0c\u56e0\u4e3a\u5b83\u786e\u4fdd\u6bcf\u6b21\u66f4\u6539\u90fd\u88ab\u7acb\u5373\u4fdd\u5b58\uff0c\u4f46\u4f1a\u964d\u4f4e\u5199\u5165\u901f\u5ea6\u3002\n* `2` - \u6570\u636e\u5728\u6bcf\u6b21\u4e8b\u52a1\u540e\u5199\u5165\uff0c\u5e76\u4e14\u6bcf\u79d2\u542f\u52a8\u4e00\u6b21\u540c\u6b65\u3002\u6b64\u65b9\u6cd5\u5728\u5b9a\u671f\u5feb\u901f\u5199\u5165\u6570\u636e\u4e0e\u5b89\u5168\u6027\u4e4b\u95f4\u53d6\u5f97\u5e73\u8861\u3002\u4f46\u5982\u679c\u8ba1\u7b97\u673a\u5931\u8d25\uff0c\u67d0\u4e9b\u6b63\u5728\u4fdd\u5b58\u7684\u6570\u636e\u53ef\u80fd\u672a\u5b8c\u6210\u4fdd\u5b58\u3002\u6b64\u5916\uff0c\u6839\u636e\u78c1\u76d8\u60c5\u51b5\uff0c\u540c\u6b65\u53ef\u80fd\u9700\u8981\u8d85\u8fc7\u4e00\u79d2\u949f\u7684\u65f6\u95f4\u3002\n* `3` - \u7c7b\u4f3c\u4e8e `2`\uff0c\u4f46\u8fd8\u786e\u4fdd binlog \u6587\u4ef6\u5728\u56e0\u8d85\u8fc7 `binlog_max_log_size` \u800c\u5173\u95ed\u4e4b\u524d\u540c\u6b65\u3002\n\n\u9ed8\u8ba4\u6a21\u5f0f\u4e3a `2`\uff0c\u5373\u6bcf\u6b21\u4e8b\u52a1\u540e\u5199\u5165\u6570\u636e\uff0c\u5e76\u6bcf\u79d2\u542f\u52a8\u540c\u6b65\uff0c\u5e73\u8861\u901f\u5ea6\u548c\u5b89\u5168\u6027\u3002\n\n<!-- request Example -->\nCODE_BLOCK_8\n<!-- end -->\n\n### \u96c6\u7fa4 binlog \u652f\u6301\n\n<!-- Example binlog_cluster -->\n\u5728\u4f7f\u7528 Galera \u7684\u96c6\u7fa4\u8bbe\u7f6e\u4e2d\uff0c\u8282\u70b9\u6062\u590d\u884c\u4e3a\u81f3\u5173\u91cd\u8981\u3002\u901a\u5e38\uff0c\u5982\u679c\u8282\u70b9\u6b63\u5e38\u5173\u95ed\u4e14\u5176\u6700\u540e\u7684\u5e8f\u5217\u53f7 (seqno) \u88ab\u6b63\u786e\u4fdd\u5b58\uff0cGalera \u4f1a\u901a\u8fc7 IST\uff08\u589e\u91cf\u72b6\u6001\u4f20\u8f93\uff09\u5904\u7406\u8282\u70b9\u4e0d\u540c\u6b65\u7684\u60c5\u51b5\u3002\u7136\u800c\uff0c\u5982\u679c\u53d1\u751f\u5d29\u6e83\u5bfc\u81f4 seqno \u672a\u88ab\u4fdd\u5b58\uff0cGalera \u4f1a\u89e6\u53d1 SST\uff08\u72b6\u6001\u5feb\u7167\u4f20\u8f93\uff09\uff0c\u8fd9\u662f\u4e00\u79cd\u8d44\u6e90\u5bc6\u96c6\u578b\u64cd\u4f5c\uff0c\u4f1a\u56e0\u9ad8 I/O \u6d3b\u52a8\u663e\u8457\u51cf\u7f13\u96c6\u7fa4\u901f\u5ea6\u3002\n\n\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e00\u95ee\u9898\uff0c\u5f15\u5165\u4e86\u96c6\u7fa4 binlog \u652f\u6301\u3002\u8be5\u529f\u80fd\u6269\u5c55\u4e86\u73b0\u6709\u7684\u4e8c\u8fdb\u5236\u65e5\u5fd7\u529f\u80fd\uff0c\u5e2e\u52a9\u51cf\u5c11 SST \u7684\u9700\u6c42\uff0c\u4f7f\u6062\u590d\u8282\u70b9\u80fd\u591f\u4ece\u672c\u5730 binlog \u91cd\u653e\u7f3a\u5931\u7684\u4e8b\u52a1\uff0c\u5e76\u5e26\u7740\u6709\u6548\u7684 seqno \u91cd\u65b0\u52a0\u5165\u96c6\u7fa4\u3002\n\n\u96c6\u7fa4 binlog \u9ed8\u8ba4\u5728\u4efb\u4f55\u96c6\u7fa4\u64cd\u4f5c\u4e2d\u542f\u7528\uff0c\u4f46\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u5173\u95ed\uff1a\n\n<!-- request binlog_cluster -->\nCODE_BLOCK_9\n<!-- end -->\n\n\u8be5\u529f\u80fd\u901a\u8fc7\u7ed3\u5408\u4e8c\u8fdb\u5236\u65e5\u5fd7\u7684\u672c\u5730\u6301\u4e45\u6027\u4e0e Galera \u7684\u5206\u5e03\u5f0f\u540c\u6b65\u80fd\u529b\uff0c\u51cf\u5c11\u4e86\u505c\u673a\u65f6\u95f4\u5e76\u907f\u514d\u4e86\u5b8c\u6574\u6570\u636e\u4f20\u8f93\u3002\n\n### \u6062\u590d\n\n\u5728\u975e\u6b63\u5e38\u5173\u95ed\u540e\u7684\u6062\u590d\u8fc7\u7a0b\u4e2d\uff0c\u4f1a\u91cd\u653e binlog\uff0c\u6062\u590d\u81ea\u4e0a\u4e00\u6b21\u826f\u597d\u78c1\u76d8\u72b6\u6001\u4ee5\u6765\u6240\u6709\u8bb0\u5f55\u7684\u4e8b\u52a1\u3002\u4e8b\u52a1\u6709\u6821\u9a8c\u548c\uff0c\u56e0\u6b64\u5982\u679c binlog \u6587\u4ef6\u635f\u574f\uff0c\u5783\u573e\u6570\u636e**\u4e0d\u4f1a**\u88ab\u91cd\u653e\uff1b\u635f\u574f\u7684\u4e8b\u52a1\u5c06\u88ab\u68c0\u6d4b\u5230\u5e76\u505c\u6b62\u91cd\u653e\u3002\n\n### \u5237\u65b0 RT RAM \u5757\n\n<!-- Example rt_flush_period -->\n\u9891\u7e41\u66f4\u65b0\u5b8c\u5168\u9002\u5408\u4e8e RAM \u5757\u7684\u5c0f\u578b RT \u8868\u4f1a\u5bfc\u81f4 binlog \u4e0d\u65ad\u589e\u957f\uff0c\u4e14\u9664\u975e\u5e72\u51c0\u5173\u95ed\uff0c\u5426\u5219\u65e0\u6cd5\u89e3\u9664\u94fe\u63a5\u3002binlog \u5b9e\u8d28\u4e0a\u662f\u9488\u5bf9\u78c1\u76d8\u4e0a\u6700\u540e\u5df2\u77e5\u826f\u597d\u4fdd\u5b58\u72b6\u6001\u7684\u8ffd\u52a0\u578b\u589e\u91cf\uff0c\u9664\u975e\u4fdd\u5b58\u4e86 RAM \u5757\uff0c\u5426\u5219\u65e0\u6cd5\u89e3\u9664\u94fe\u63a5\u3002\u6301\u7eed\u589e\u957f\u7684 binlog \u5bf9\u78c1\u76d8\u4f7f\u7528\u548c\u5d29\u6e83\u6062\u590d\u65f6\u95f4\u4e0d\u7406\u60f3\u3002\u4e3a\u4e86\u89e3\u51b3\u6b64\u95ee\u9898\uff0c\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e `searchd` \u4f7f\u7528 `rt_flush_period` \u6307\u4ee4\u6267\u884c\u5468\u671f\u6027 RAM \u5757\u5237\u65b0\u3002\u542f\u7528\u5468\u671f\u5237\u65b0\u540e\uff0c`searchd` \u4f1a\u7ef4\u62a4\u4e00\u4e2a\u5355\u72ec\u7ebf\u7a0b\uff0c\u68c0\u67e5 RT \u8868\u7684 RAM \u5757\u662f\u5426\u9700\u8981\u5199\u56de\u78c1\u76d8\u3002\u4e00\u65e6\u53d1\u751f\uff0c\u76f8\u5173\u7684 binlog \u5c31\u53ef\u4ee5\uff08\u5e76\u4e14\u4f1a\u88ab\uff09\u5b89\u5168\u89e3\u9664\u94fe\u63a5\u3002\n\n\u9ed8\u8ba4\u7684 RT \u5237\u65b0\u5468\u671f\u8bbe\u7f6e\u4e3a 10 \u5c0f\u65f6\u3002\n\n<!-- request Example -->\nCODE_BLOCK_10\n<!-- end -->\n\n\u91cd\u8981\u7684\u662f\uff0c`rt_flush_period` \u4ec5\u63a7\u5236\u68c0\u67e5\u9891\u7387\u3002\u4e0d\u4fdd\u8bc1\u67d0\u4e2a\u5177\u4f53\u7684 RAM \u5757\u4e00\u5b9a\u4f1a\u88ab\u4fdd\u5b58\u3002\u4f8b\u5982\uff0c\u5b9a\u671f\u91cd\u5b58\u4ec5\u6709\u5c11\u91cf\u884c\u66f4\u65b0\u7684\u5927 RAM \u5757\u6ca1\u6709\u610f\u4e49\u3002Manticore \u4f7f\u7528\u4e00\u4e9b\u542f\u53d1\u5f0f\u65b9\u6cd5\u81ea\u52a8\u786e\u5b9a\u662f\u5426\u6267\u884c\u5237\u65b0\u3002\n\n<!-- proofread -->",
- "russian": "* `0` - \u0414\u0430\u043d\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u0434\u0438\u0441\u043a (\u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f) \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0435\u043a\u0443\u043d\u0434\u0443, \u0438 Manticore \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u0442 \u0438\u0445 \u0437\u0430\u0449\u0438\u0442\u0443 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 ([\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044e](https://linux.die.net/man/8/sync)) \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0441\u0431\u0440\u043e\u0441\u0430. \u042d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u0441\u0430\u043c\u044b\u0439 \u0431\u044b\u0441\u0442\u0440\u044b\u0439, \u043d\u043e \u0435\u0441\u043b\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438\u043b\u0438 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u0432\u044b\u0439\u0434\u0443\u0442 \u0438\u0437 \u0441\u0442\u0440\u043e\u044f, \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0431\u044b\u043b\u0438 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u044b, \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u0442\u0435\u0440\u044f\u043d\u044b.\n* `1` - \u0414\u0430\u043d\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 binlog \u0438 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438. \u042d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u0441\u0430\u043c\u044b\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439, \u0442\u0430\u043a \u043a\u0430\u043a \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442 \u043d\u0435\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043d\u043e \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u044c.\n* `2` - \u0414\u0430\u043d\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438, \u0430 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0435\u043a\u0443\u043d\u0434\u0443. \u042d\u0442\u043e\u0442 \u043f\u043e\u0434\u0445\u043e\u0434 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0431\u0430\u043b\u0430\u043d\u0441, \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044f \u0434\u0430\u043d\u043d\u044b\u0435 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u0438 \u0431\u044b\u0441\u0442\u0440\u043e. \u041e\u0434\u043d\u0430\u043a\u043e, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0431\u043e\u044f \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430, \u0447\u0430\u0441\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u0438\u0441\u044c \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0437\u0430\u0449\u0438\u0442\u044b, \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0443\u0441\u043f\u0435\u0442\u044c \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u0434\u043d\u043e\u0439 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0434\u0438\u0441\u043a\u0430.\n* `3` - \u041f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 `2`, \u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442, \u0447\u0442\u043e \u0444\u0430\u0439\u043b binlog \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0435\u043c \u0438\u0437-\u0437\u0430 \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u0438\u044f `binlog_max_log_size`.\n\n\u0420\u0435\u0436\u0438\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u2014 `2`, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0438\u0445 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044e \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0435\u043a\u0443\u043d\u0434\u0443, \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u0443\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c.\n\n<!-- request Example -->\nCODE_BLOCK_8\n<!-- end -->\n\n### \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043d\u043e\u0433\u043e binlog\n\n<!-- Example binlog_cluster -->\n\u0412 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Galera \u0432\u0430\u0436\u043d\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0430\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0443\u0437\u043b\u0430. \u041e\u0431\u044b\u0447\u043d\u043e Galera \u0440\u0435\u0448\u0430\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0440\u0430\u0441\u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u0443\u0437\u043b\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e IST (incremental state transfer \u2014 \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f), \u0435\u0441\u043b\u0438 \u0443\u0437\u0435\u043b \u0431\u044b\u043b \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043d \u0438 \u0435\u0433\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043d\u043e\u043c\u0435\u0440 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 (seqno) \u0431\u044b\u043b \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0451\u043d. \u041e\u0434\u043d\u0430\u043a\u043e \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0431\u043e\u044f, \u043a\u043e\u0433\u0434\u0430 seqno \u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0451\u043d, Galera \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u0442 SST (state snapshot transfer \u2014 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0441\u043d\u0438\u043c\u043a\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f), \u0447\u0442\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u043c\u0435\u0434\u043b\u0438\u0442\u044c \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0438\u0437-\u0437\u0430 \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430.\n\n\u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0432\u0432\u0435\u0434\u0435\u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043d\u043e\u0433\u043e binlog. \u042d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0435\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0434\u0432\u043e\u0438\u0447\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439, \u043f\u043e\u043c\u043e\u0433\u0430\u044f \u0441\u043d\u0438\u0437\u0438\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c SST, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0449\u0435\u043c\u0443\u0441\u044f \u0443\u0437\u043b\u0443 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0435 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u0438\u0437 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 binlog \u0438 \u0441\u043d\u043e\u0432\u0430 \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0442\u044c\u0441\u044f \u043a \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0443 \u0441 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u043c seqno.\n\n\u041a\u043b\u0430\u0441\u0442\u0435\u0440\u043d\u044b\u0439 binlog \u0432\u043a\u043b\u044e\u0447\u0435\u043d \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043b\u044f \u043b\u044e\u0431\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430. \u041e\u0434\u043d\u0430\u043a\u043e \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f:\n\n<!-- request binlog_cluster -->\nCODE_BLOCK_9\n<!-- end -->\n\n\u042d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u044f \u0438 \u043f\u0440\u0435\u0434\u043e\u0442\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u043e\u043b\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445, \u0441\u043e\u0447\u0435\u0442\u0430\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u0433\u043e \u0436\u0443\u0440\u043d\u0430\u043b\u0430 \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0439 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 Galera.\n\n### \u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\n\n\u041f\u0440\u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0433\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f binlog \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f, \u0438 \u0432\u0441\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u0441 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u0432\u0448\u0435\u0433\u043e\u0441\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f. \u0422\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u0441\u043d\u0430\u0431\u0436\u0435\u043d\u044b \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0443\u043c\u043c\u0430\u043c\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430 binlog \u043c\u0443\u0441\u043e\u0440\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 **\u043d\u0435 \u0431\u0443\u0434\u0443\u0442** \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u044b; \u0442\u0430\u043a\u0430\u044f \u0441\u043b\u043e\u043c\u0430\u043d\u043d\u0430\u044f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0430 \u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435.\n\n### \u0421\u0431\u0440\u043e\u0441 RAM-\u0447\u0443\u043d\u043a RT\n\n<!-- Example rt_flush_period -->\n\u0418\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u044b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b RT, \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u043c\u0435\u0449\u0430\u044e\u0449\u0435\u0439\u0441\u044f \u0432 RAM-\u0447\u0443\u043d\u043a, \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0440\u0430\u0441\u0442\u0443\u0449\u0435\u043c\u0443 binlog, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0434\u043e \u0447\u0438\u0441\u0442\u043e\u0433\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b. Binlog \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043b\u0443\u0436\u0438\u0442 \u0432 \u0432\u0438\u0434\u0435 \u0434\u0435\u043b\u044c\u0442\u044b, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u043e\u0439 \u043a \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c\u0443 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u043c\u0443 \u0445\u043e\u0440\u043e\u0448\u0435\u043c\u0443 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044e \u043d\u0430 \u0434\u0438\u0441\u043a\u0435, \u0438 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0443\u0434\u0430\u043b\u0451\u043d, \u043f\u043e\u043a\u0430 RAM-\u0447\u0443\u043d\u043a \u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0451\u043d. \u041f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0439 binlog \u043d\u0435\u0436\u0435\u043b\u0430\u0442\u0435\u043b\u0435\u043d \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0438\u0441\u043a\u0430 \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u043b\u0435 \u0441\u0431\u043e\u044f. \u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c `searchd` \u043d\u0430 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0431\u0440\u043e\u0441 RAM-\u0447\u0443\u043d\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b `rt_flush_period`. \u041f\u0440\u0438 \u0432\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u044b\u0445 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u0431\u0440\u043e\u0441\u0430\u0445 `searchd` \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u0442\u043e\u043a, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0449\u0438\u0439, \u043d\u0443\u0436\u043d\u043e \u043b\u0438 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c RAM-\u0447\u0443\u043d\u043a RT \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u043d\u0430 \u0434\u0438\u0441\u043a. \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 binlog \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e (\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e) \u0443\u0434\u0430\u043b\u0435\u043d\u044b.\n\n\u041f\u0435\u0440\u0438\u043e\u0434 \u0441\u0431\u0440\u043e\u0441\u0430 RT \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043d\u0430 10 \u0447\u0430\u0441\u043e\u0432.\n\n<!-- request Example -->\nCODE_BLOCK_10\n<!-- end -->\n\n\u0412\u0430\u0436\u043d\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e `rt_flush_period` \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u0435\u0442 \u043b\u0438\u0448\u044c \u0447\u0430\u0441\u0442\u043e\u0442\u0443 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a. \u041d\u0435\u0442 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0439, \u0447\u0442\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 RAM-\u0447\u0443\u043d\u043a \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u0451\u043d. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0431\u0435\u0441\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u043e \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u043f\u0435\u0440\u0435\u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0439 RAM-\u0447\u0443\u043d\u043a, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0432\u0441\u0435\u0433\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u0441\u0442\u0440\u043e\u043a. Manticore \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0441\u0431\u0440\u043e\u0441\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0432\u0440\u0438\u0441\u0442\u0438\u043a.\n\n<!-- proofread -->"
- },
- "is_code_or_comment": false,
- "model": "openai:gpt-4.1-mini",
- "updated_at": 1766339885
- },
- "710b3b583dce03b3929495a05e4236e81df6a5e80d3c3c257c4fda888f0f1989": {
- "original": "# Binary logging\n\nBinary logging serves as a recovery mechanism for [real-time](../Creating_a_table/Local_tables/Real-time_table.md) table data. When binary logs are enabled, `searchd` records each transaction to the binlog file and utilizes it for recovery following an unclean shutdown. During a clean shutdown, RAM chunks are saved to disk, and all binlog files are subsequently deleted.\n\n## Enabling and disabling binary logging\n\nBy default, binary logging is enabled to safeguard data integrity. On Linux systems, the default location for `binlog.*` files in [Plain mode](../Creating_a_table/Local_tables.md#Defining-table-schema-in-config-%28Plain-mode%29) is `/var/lib/manticore/data/`. In [RT mode](../Creating_a_table/Local_tables.md#Online-schema-management-%28RT-mode%29), binary logs are stored in the `<data_dir>/binlog/` folder, unless specified otherwise.\n\n### Global binary logging configuration\n\n<!-- example binlog_path -->\nTo disable binary logging globally, set `binlog_path` to an empty value in the `searchd` configuration.\nDisabling binary logging requires a restart of the daemon and puts data at risk if the system shuts down unexpectedly.\n\n<!-- request Example -->\nCODE_BLOCK_0\n<!-- end -->\n\n<!-- example binlog_path2 -->\nYou can use the following directive to set a custom path:\n\n<!-- request Example -->\nCODE_BLOCK_1\n<!-- end -->\n\n### Per-table binary logging configuration\n\n<!-- Example binlog0 -->\nFor more granular control, binary logging can be disabled at the table level for real-time tables by setting the `binlog` table parameter to `0`. This option is not available for percolate tables.\n\n<!-- request Example -->\nCODE_BLOCK_2\n<!-- end -->\n\n<!-- Example binlog_alter -->\nFor existing RT tables, binary logging can also be disabled by modifying the `binlog` parameter.\n\n<!-- request Example -->\nCODE_BLOCK_3\n<!-- end -->\n\n<!-- Example binlog_alter2 -->\nIf binary logging was previously disabled, it can be re-enabled by setting the `binlog` parameter back to `1`:\n\n<!-- request Example -->\nCODE_BLOCK_4\n<!-- end -->\n\n#### Important considerations:\n* **Dependency on global settings**: per-table binary logging settings only take effect if binary logging is globally enabled in the searchd configuration (`binlog_path` must not be empty).\n* **Binary logging status and transaction ID insights**: Modifying the binary logging status of a table forces an immediate [flush of the table](../Securing_and_compacting_a_table/Flushing_RAM_chunk_to_disk.md#FLUSH-TABLE). If you turn off binary logging for a table, its transaction ID (TID) changes to `-1`. This indicates that binary logging is not active, and no changes are being tracked. Conversely, if you start binary logging for a table, its transaction ID becomes a non-negative number (zero or higher). This indicates that the table's changes are now being recorded. You can check the transaction ID by using the command: `SHOW TABLE <name> STATUS`. The transaction ID reflects whether changes to the table are being recorded (non-negative number) or not (`-1`).\n\n## Operations\n\nWhen binary logging is turned on, every change made to an RT table is saved to a log file. If the system shuts down unexpectedly, these logs are used automatically when the system starts again to bring back all the changes that were logged.\n\n### Log size\n\n<!-- Example binlog_max_log_size -->\nDuring normal operations, when the amount of data logged reaches a certain limit (set by `binlog_max_log_size`), a new log file starts. Old log files are kept until all changes in them are completely processed and saved to disk as a disk chunk. If this limit is set to `0`, the log files are kept until the system is properly shut down. By default, there's no limit to how large these files can grow.\n\n<!-- request Example -->\n\nCODE_BLOCK_5\n\n<!-- end -->\n\n### Log files\n\n<!-- example binlog_filename_digits -->\n\nEach binlog file is named with a zero-padded number, like `binlog.0000`, `binlog.0001`, etc., typically showing four digits. You can change how many digits the number has with the setting `binlog_filename_digits`. If you have more binlog files than the number of digits can accommodate, the number of digits will be automatically increased to fit all files.\n\n**Important**: To change the number of digits, you must first save all table data and properly shut down the system. Then, delete the old log files and restart the system.\n\n<!-- request Example -->\nCODE_BLOCK_6\n<!-- end -->\n\n### Binary logging strategies\n\n<!-- Example binlog_common -->\nYou can choose between two ways to manage binary log files, which can be set with the `binlog_common` directive:\n* Separate file for each table (default, `0`): Each table saves its changes in its own log file. This setup is good if you have many tables that get updated at different times. It allows tables to be updated without waiting for others. Also, if there is a problem with one table's log file, it does not affect the others.\n* Single file for all tables (`1`): All tables use the same binary log file. This method makes it easier to handle files because there are fewer of them. However, this could keep files longer than needed if one table still needs to save its updates. This setting might also slow things down if many tables need to update at the same time because all changes have to wait to be written to one file.\n\n<!-- request binlog_common -->\n\nCODE_BLOCK_7\n<!-- end -->\n\n### Binary flushing strategies\n\n<!-- Example binlog_flush -->\nThere are four different binlog flushing strategies, controlled by the `binlog_flush` directive:",
- "translations": {
- "chinese": "# \u4e8c\u8fdb\u5236\u65e5\u5fd7\u8bb0\u5f55\n\n\u4e8c\u8fdb\u5236\u65e5\u5fd7\u8bb0\u5f55\u4f5c\u4e3a[\u5b9e\u65f6](../Creating_a_table/Local_tables/Real-time_table.md)\u8868\u6570\u636e\u7684\u6062\u590d\u673a\u5236\u3002\u5f53\u542f\u7528\u4e8c\u8fdb\u5236\u65e5\u5fd7\u65f6\uff0c`searchd` \u4f1a\u5c06\u6bcf\u4e2a\u4e8b\u52a1\u8bb0\u5f55\u5230 binlog \u6587\u4ef6\u4e2d\uff0c\u5e76\u5728\u975e\u6b63\u5e38\u5173\u95ed\u540e\u5229\u7528\u5176\u8fdb\u884c\u6062\u590d\u3002\u5728\u6b63\u5e38\u5173\u95ed\u671f\u95f4\uff0cRAM \u6570\u636e\u5757\u4f1a\u4fdd\u5b58\u5230\u78c1\u76d8\uff0c\u5e76\u968f\u540e\u5220\u9664\u6240\u6709\u7684 binlog \u6587\u4ef6\u3002\n\n## \u542f\u7528\u548c\u7981\u7528\u4e8c\u8fdb\u5236\u65e5\u5fd7\n\n\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u542f\u7528\u4e8c\u8fdb\u5236\u65e5\u5fd7\u4ee5\u4fdd\u62a4\u6570\u636e\u5b8c\u6574\u6027\u3002\u5728 Linux \u7cfb\u7edf\u4e0a\uff0c[\u7eaf\u6a21\u5f0f](../Creating_a_table/Local_tables.md#Defining-table-schema-in-config-%28Plain-mode%29)\u4e2d `binlog.*` \u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\u662f `/var/lib/manticore/data/`\u3002\u5728[RT \u6a21\u5f0f](../Creating_a_table/Local_tables.md#Online-schema-management-%28RT-mode%29)\u4e0b\uff0c\u4e8c\u8fdb\u5236\u65e5\u5fd7\u5b58\u50a8\u5728 `<data_dir>/binlog/` \u6587\u4ef6\u5939\u5185\uff0c\u9664\u975e\u53e6\u6709\u6307\u5b9a\u3002\n\n### \u5168\u5c40\u4e8c\u8fdb\u5236\u65e5\u5fd7\u914d\u7f6e\n\n<!-- example binlog_path -->\n\u8981\u5168\u5c40\u7981\u7528\u4e8c\u8fdb\u5236\u65e5\u5fd7\uff0c\u8bf7\u5728 `searchd` \u914d\u7f6e\u4e2d\u5c06 `binlog_path` \u8bbe\u7f6e\u4e3a\u7a7a\u503c\u3002 \n\u7981\u7528\u4e8c\u8fdb\u5236\u65e5\u5fd7\u9700\u8981\u91cd\u542f\u5b88\u62a4\u8fdb\u7a0b\uff0c\u5e76\u4e14\u5982\u679c\u7cfb\u7edf\u610f\u5916\u5173\u95ed\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u6570\u636e\u98ce\u9669\u3002\n\n<!-- request Example -->\nCODE_BLOCK_0\n<!-- end -->\n\n<!-- example binlog_path2 -->\n\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u6307\u4ee4\u8bbe\u7f6e\u81ea\u5b9a\u4e49\u8def\u5f84\uff1a\n\n<!-- request Example -->\nCODE_BLOCK_1\n<!-- end -->\n\n### \u6309\u8868\u4e8c\u8fdb\u5236\u65e5\u5fd7\u914d\u7f6e\n\n<!-- Example binlog0 -->\n\u4e3a\u4e86\u66f4\u7ec6\u7c92\u5ea6\u7684\u63a7\u5236\uff0c\u53ef\u4ee5\u901a\u8fc7\u5c06 `binlog` \u8868\u53c2\u6570\u8bbe\u7f6e\u4e3a `0` \u6765\u7981\u7528\u5b9e\u65f6\u8868\u7684\u4e8c\u8fdb\u5236\u65e5\u5fd7\u3002\u6b64\u9009\u9879\u4e0d\u9002\u7528\u4e8e percolate \u8868\u3002\n\n<!-- request Example -->\nCODE_BLOCK_2\n<!-- end -->\n\n<!-- Example binlog_alter -->\n\u5bf9\u4e8e\u5df2\u5b58\u5728\u7684 RT \u8868\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539 `binlog` \u53c2\u6570\u6765\u7981\u7528\u4e8c\u8fdb\u5236\u65e5\u5fd7\u3002\n\n<!-- request Example -->\nCODE_BLOCK_3\n<!-- end -->\n\n<!-- Example binlog_alter2 -->\n\u5982\u679c\u4e4b\u524d\u7981\u7528\u4e86\u4e8c\u8fdb\u5236\u65e5\u5fd7\uff0c\u53ef\u4ee5\u901a\u8fc7\u5c06 `binlog` \u53c2\u6570\u91cd\u65b0\u8bbe\u7f6e\u4e3a `1` \u6765\u542f\u7528\uff1a\n\n<!-- request Example -->\nCODE_BLOCK_4\n<!-- end -->\n\n#### \u91cd\u8981\u6ce8\u610f\u4e8b\u9879\uff1a\n* **\u4f9d\u8d56\u5168\u5c40\u8bbe\u7f6e**\uff1a\u6bcf\u4e2a\u8868\u7684\u4e8c\u8fdb\u5236\u65e5\u5fd7\u914d\u7f6e\u53ea\u6709\u5728 `searchd` \u914d\u7f6e\u4e2d\u5168\u5c40\u542f\u7528\u4e86\u4e8c\u8fdb\u5236\u65e5\u5fd7\uff08`binlog_path` \u975e\u7a7a\uff09\u65f6\u624d\u751f\u6548\u3002\n* **\u4e8c\u8fdb\u5236\u65e5\u5fd7\u72b6\u6001\u548c\u4e8b\u52a1 ID \u8bf4\u660e**\uff1a\u4fee\u6539\u8868\u7684\u4e8c\u8fdb\u5236\u65e5\u5fd7\u72b6\u6001\u4f1a\u5f3a\u5236\u7acb\u5373[\u5237\u65b0\u8868](../Securing_and_compacting_a_table/Flushing_RAM_chunk_to_disk.md#FLUSH-TABLE)\u3002\u5982\u679c\u5173\u95ed\u67d0\u4e2a\u8868\u7684\u4e8c\u8fdb\u5236\u65e5\u5fd7\uff0c\u5176\u4e8b\u52a1 ID\uff08TID\uff09\u5c06\u53d8\u4e3a `-1`\uff0c\u8868\u793a\u672a\u542f\u7528\u4e8c\u8fdb\u5236\u65e5\u5fd7\u4e14\u4e0d\u8ddf\u8e2a\u66f4\u6539\u3002\u53cd\u4e4b\uff0c\u5982\u679c\u5f00\u59cb\u542f\u7528\u4e8c\u8fdb\u5236\u65e5\u5fd7\uff0c\u4e8b\u52a1 ID \u4f1a\u53d8\u4e3a\u975e\u8d1f\u6570\uff08\u96f6\u6216\u66f4\u5927\uff09\uff0c\u8868\u793a\u8868\u7684\u53d8\u66f4\u6b63\u5728\u88ab\u8bb0\u5f55\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4 `SHOW TABLE <name> STATUS` \u6765\u67e5\u770b\u4e8b\u52a1 ID\u3002\u4e8b\u52a1 ID \u663e\u793a\u8868\u7684\u53d8\u52a8\u662f\u5426\u88ab\u8bb0\u5f55\uff08\u975e\u8d1f\u6570\uff09\u6216\u672a\u88ab\u8bb0\u5f55\uff08`-1`\uff09\u3002\n\n## \u64cd\u4f5c\n\n\u5f53\u542f\u7528\u4e8c\u8fdb\u5236\u65e5\u5fd7\u65f6\uff0c\u5bf9 RT \u8868\u7684\u6bcf\u6b21\u66f4\u6539\u90fd\u4f1a\u4fdd\u5b58\u5230\u65e5\u5fd7\u6587\u4ef6\u4e2d\u3002\u5982\u679c\u7cfb\u7edf\u610f\u5916\u5173\u95ed\uff0c\u7cfb\u7edf\u91cd\u542f\u65f6\u4f1a\u81ea\u52a8\u5229\u7528\u8fd9\u4e9b\u65e5\u5fd7\u6062\u590d\u6240\u6709\u5df2\u8bb0\u5f55\u7684\u66f4\u6539\u3002\n\n### \u65e5\u5fd7\u5927\u5c0f\n\n<!-- Example binlog_max_log_size -->\n\u5728\u6b63\u5e38\u8fd0\u884c\u65f6\uff0c\u5f53\u5df2\u8bb0\u5f55\u6570\u636e\u5927\u5c0f\u8fbe\u5230\u7531 `binlog_max_log_size` \u8bbe\u7f6e\u7684\u9650\u5236\u65f6\uff0c\u4f1a\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u65e5\u5fd7\u6587\u4ef6\u3002\u65e7\u65e5\u5fd7\u6587\u4ef6\u4f1a\u4fdd\u7559\uff0c\u76f4\u5230\u5176\u4e2d\u7684\u6240\u6709\u66f4\u6539\u88ab\u5b8c\u5168\u5904\u7406\u5e76\u4fdd\u5b58\u4e3a\u78c1\u76d8\u5757\u3002\u5982\u679c\u8be5\u9650\u5236\u8bbe\u7f6e\u4e3a `0`\uff0c\u65e5\u5fd7\u6587\u4ef6\u4f1a\u4e00\u76f4\u4fdd\u7559\u5230\u7cfb\u7edf\u6b63\u786e\u5173\u95ed\u4e3a\u6b62\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u6ca1\u6709\u9650\u5236\u65e5\u5fd7\u6587\u4ef6\u5927\u5c0f\u3002\n\n<!-- request Example -->\n\nCODE_BLOCK_5\n\n<!-- end -->\n\n### \u65e5\u5fd7\u6587\u4ef6\n\n<!-- example binlog_filename_digits -->\n\n\u6bcf\u4e2a binlog \u6587\u4ef6\u7684\u547d\u540d\u683c\u5f0f\u4e3a\u5e26\u96f6\u586b\u5145\u7684\u6570\u5b57\uff0c\u5982 `binlog.0000`\u3001`binlog.0001` \u7b49\uff0c\u901a\u5e38\u663e\u793a\u56db\u4f4d\u6570\u5b57\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e `binlog_filename_digits` \u6765\u66f4\u6539\u6570\u5b57\u4f4d\u6570\u3002\u5982\u679c binlog \u6587\u4ef6\u6570\u91cf\u8d85\u8fc7\u4f4d\u6570\u9650\u5236\uff0c\u4f4d\u6570\u4f1a\u81ea\u52a8\u589e\u52a0\u4ee5\u9002\u5e94\u6240\u6709\u6587\u4ef6\u3002\n\n**\u91cd\u8981**\uff1a\u8981\u66f4\u6539\u6570\u5b57\u4f4d\u6570\uff0c\u5fc5\u987b\u5148\u4fdd\u5b58\u6240\u6709\u8868\u6570\u636e\u5e76\u6b63\u786e\u5173\u95ed\u7cfb\u7edf\uff0c\u7136\u540e\u5220\u9664\u65e7\u7684\u65e5\u5fd7\u6587\u4ef6\uff0c\u518d\u91cd\u542f\u7cfb\u7edf\u3002\n\n<!-- request Example -->\nCODE_BLOCK_6\n<!-- end -->\n\n### \u4e8c\u8fdb\u5236\u65e5\u5fd7\u7b56\u7565\n\n<!-- Example binlog_common -->\n\u4f60\u53ef\u4ee5\u901a\u8fc7 `binlog_common` \u6307\u4ee4\u9009\u62e9\u4e24\u79cd\u4e8c\u8fdb\u5236\u65e5\u5fd7\u6587\u4ef6\u7ba1\u7406\u65b9\u5f0f\uff1a\n* \u6bcf\u8868\u5355\u72ec\u6587\u4ef6\uff08\u9ed8\u8ba4\uff0c`0`\uff09\uff1a\u6bcf\u4e2a\u8868\u5c06\u5176\u66f4\u6539\u4fdd\u5b58\u5728\u81ea\u5df1\u7684\u65e5\u5fd7\u6587\u4ef6\u4e2d\u3002\u8be5\u8bbe\u7f6e\u9002\u5408\u5b58\u5728\u591a\u4e2a\u4e0d\u540c\u65f6\u95f4\u66f4\u65b0\u7684\u8868\u3002\u5b83\u5141\u8bb8\u8868\u72ec\u7acb\u66f4\u65b0\u800c\u4e0d\u7b49\u5f85\u5176\u4ed6\u8868\u3002\u6b64\u5916\uff0c\u4e00\u4e2a\u8868\u7684\u65e5\u5fd7\u6587\u4ef6\u51fa\u73b0\u95ee\u9898\u4e0d\u4f1a\u5f71\u54cd\u5176\u4ed6\u8868\u3002\n* \u6240\u6709\u8868\u5171\u7528\u5355\u4e00\u6587\u4ef6\uff08`1`\uff09\uff1a\u6240\u6709\u8868\u4f7f\u7528\u540c\u4e00\u4e2a\u4e8c\u8fdb\u5236\u65e5\u5fd7\u6587\u4ef6\u3002\u8be5\u65b9\u5f0f\u66f4\u6613\u4e8e\u7ba1\u7406\u6587\u4ef6\uff0c\u56e0\u4e3a\u6587\u4ef6\u8f83\u5c11\u3002\u7136\u800c\uff0c\u5982\u679c\u6709\u8868\u4ecd\u9700\u4fdd\u5b58\u66f4\u65b0\uff0c\u6587\u4ef6\u53ef\u80fd\u4f1a\u88ab\u4fdd\u7559\u65f6\u95f4\u8fc7\u957f\u3002\u5982\u679c\u591a\u4e2a\u8868\u540c\u65f6\u9700\u8981\u66f4\u65b0\uff0c\u53ef\u80fd\u4f1a\u56e0\u7b49\u5f85\u5199\u5165\u540c\u4e00\u6587\u4ef6\u800c\u964d\u4f4e\u6027\u80fd\u3002\n\n<!-- request binlog_common -->\n\nCODE_BLOCK_7\n<!-- end -->\n\n### \u4e8c\u8fdb\u5236\u5237\u65b0\u7b56\u7565\n\n<!-- Example binlog_flush -->\n\u4e8c\u8fdb\u5236\u65e5\u5fd7\u5237\u65b0\u6709\u56db\u79cd\u7b56\u7565\uff0c\u7531 `binlog_flush` \u6307\u4ee4\u63a7\u5236\uff1a",
- "russian": "# \u0411\u0438\u043d\u0430\u0440\u043d\u043e\u0435 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\n\n\u0411\u0438\u043d\u0430\u0440\u043d\u043e\u0435 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043b\u0443\u0436\u0438\u0442 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u043c \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 [\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438](../Creating_a_table/Local_tables/Real-time_table.md). \u041f\u0440\u0438 \u0432\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u043e\u043c \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u043c \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 `searchd` \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043a\u0430\u0436\u0434\u0443\u044e \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044e \u0432 binlog-\u0444\u0430\u0439\u043b \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0435\u0433\u043e \u0434\u043b\u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0433\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b. \u041f\u0440\u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u043c \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 RAM-\u0447\u0430\u043d\u043e\u0432 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f \u043d\u0430 \u0434\u0438\u0441\u043a, \u0430 \u0432\u0441\u0435 binlog-\u0444\u0430\u0439\u043b\u044b \u0443\u0434\u0430\u043b\u044f\u044e\u0442\u0441\u044f.\n\n## \u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\n\n\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0435 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043e \u0434\u043b\u044f \u0437\u0430\u0449\u0438\u0442\u044b \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0445. \u0412 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 Linux \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 `binlog.*` \u0432 [Plain \u0440\u0435\u0436\u0438\u043c\u0435](../Creating_a_table/Local_tables.md#Defining-table-schema-in-config-%28Plain-mode%29) \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 `/var/lib/manticore/data/`. \u0412 [RT \u0440\u0435\u0436\u0438\u043c\u0435](../Creating_a_table/Local_tables.md#Online-schema-management-%28RT-mode%29) \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0435 \u043b\u043e\u0433\u0438 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 `<data_dir>/binlog/`, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0438\u043d\u043e\u0435.\n\n### \u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\n\n<!-- example binlog_path -->\n\u0414\u043b\u044f \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 `binlog_path` \u0432 \u043f\u0443\u0441\u0442\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 `searchd`.\n\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0434\u0435\u043c\u043e\u043d\u0430 \u0438 \u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442 \u0440\u0438\u0441\u043a \u043f\u043e\u0442\u0435\u0440\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e\u043c \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.\n\n<!-- request Example -->\nCODE_BLOCK_0\n<!-- end -->\n\n<!-- example binlog_path2 -->\n\u0414\u043b\u044f \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043f\u0443\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0443:\n\n<!-- request Example -->\nCODE_BLOCK_1\n<!-- end -->\n\n### \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\n\n<!-- Example binlog0 -->\n\u0414\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0433\u0438\u0431\u043a\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0435 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0442\u0430\u0431\u043b\u0438\u0446\u044b `binlog` \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 `0`. \u042d\u0442\u0430 \u043e\u043f\u0446\u0438\u044f \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0434\u043b\u044f \u0442\u0430\u0431\u043b\u0438\u0446 \u0442\u0438\u043f\u0430 percolate.\n\n<!-- request Example -->\nCODE_BLOCK_2\n<!-- end -->\n\n<!-- Example binlog_alter -->\n\u0414\u043b\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 RT-\u0442\u0430\u0431\u043b\u0438\u0446 \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0435 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c, \u0438\u0437\u043c\u0435\u043d\u0438\u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 `binlog`.\n\n<!-- request Example -->\nCODE_BLOCK_3\n<!-- end -->\n\n<!-- Example binlog_alter2 -->\n\u0415\u0441\u043b\u0438 \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0435 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0431\u044b\u043b\u043e \u0440\u0430\u043d\u0435\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u043e, \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u043d\u043e\u0432\u044c \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 `binlog` \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0432 `1`:\n\n<!-- request Example -->\nCODE_BLOCK_4\n<!-- end -->\n\n#### \u0412\u0430\u0436\u043d\u044b\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f:\n* **\u0417\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c \u043e\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a**: \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0435 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043e \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 searchd (`binlog_path` \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u0443\u0441\u0442\u044b\u043c).\n* **\u0421\u0442\u0430\u0442\u0443\u0441 \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438**: \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0435\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439 [\u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u0431\u0440\u043e\u0441 \u0442\u0430\u0431\u043b\u0438\u0446\u044b](../Securing_and_compacting_a_table/Flushing_RAM_chunk_to_disk.md#FLUSH-TABLE). \u0415\u0441\u043b\u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0435 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0435\u0451 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 (TID) \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 `-1`. \u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0435 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0435 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f. \u0415\u0441\u043b\u0438 \u0436\u0435 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0435 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0435\u0451 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0435\u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c (\u043d\u043e\u043b\u044c \u0438\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u0435). \u042d\u0442\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0442\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439: `SHOW TABLE <name> STATUS`. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 TID \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442 \u0432\u0435\u0434\u0435\u0442\u0441\u044f \u043b\u0438 \u0437\u0430\u043f\u0438\u0441\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 (\u043d\u0435\u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e) \u0438\u043b\u0438 \u043d\u0435\u0442 (`-1`).\n\n## \u041e\u043f\u0435\u0440\u0430\u0446\u0438\u0438\n\n\u041f\u0440\u0438 \u0432\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u043e\u043c \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u043c \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043a\u0430\u0436\u0434\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 RT-\u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u043b\u043e\u0433-\u0444\u0430\u0439\u043b. \u0415\u0441\u043b\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f, \u044d\u0442\u0438 \u043b\u043e\u0433\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0434\u043b\u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439.\n\n### \u0420\u0430\u0437\u043c\u0435\u0440 \u043b\u043e\u0433\u0430\n\n<!-- Example binlog_max_log_size -->\n\u0412\u043e \u0432\u0440\u0435\u043c\u044f \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b, \u043a\u043e\u0433\u0434\u0430 \u043e\u0431\u044a\u0451\u043c \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043e\u0441\u0442\u0438\u0433\u0430\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0435\u043b\u0430 (\u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c `binlog_max_log_size`), \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u043b\u043e\u0433-\u0444\u0430\u0439\u043b. \u0421\u0442\u0430\u0440\u044b\u0435 \u043b\u043e\u0433\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u0432\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043d\u0438\u0445 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442\u0441\u044f \u0438 \u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043d\u0430 \u0434\u0438\u0441\u043a \u0432 \u0432\u0438\u0434\u0435 \u0434\u0438\u0441\u043a\u043e\u0432\u043e\u0433\u043e \u0447\u0430\u043d\u043a\u0430. \u0415\u0441\u043b\u0438 \u044d\u0442\u043e\u0442 \u043f\u0440\u0435\u0434\u0435\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0432 `0`, \u043b\u043e\u0433-\u0444\u0430\u0439\u043b\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f \u043f\u043e\u043a\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439 \u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0435\u0442.\n\n<!-- request Example -->\n\nCODE_BLOCK_5\n\n<!-- end -->\n\n### \u041b\u043e\u0433-\u0444\u0430\u0439\u043b\u044b\n\n<!-- example binlog_filename_digits -->\n\n\u041a\u0430\u0436\u0434\u044b\u0439 binlog-\u0444\u0430\u0439\u043b \u0438\u043c\u0435\u043d\u0443\u0435\u0442\u0441\u044f \u0441 \u0432\u0435\u0434\u0443\u0449\u0438\u043c\u0438 \u043d\u0443\u043b\u044f\u043c\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 `binlog.0000`, `binlog.0001` \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435, \u043e\u0431\u044b\u0447\u043d\u043e \u0441 \u0447\u0435\u0442\u044b\u0440\u044c\u043c\u044f \u0446\u0438\u0444\u0440\u0430\u043c\u0438. \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0446\u0438\u0444\u0440 \u0432 \u043d\u043e\u043c\u0435\u0440\u0435 \u0444\u0430\u0439\u043b\u0430 \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 `binlog_filename_digits`. \u0415\u0441\u043b\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e binlog-\u0444\u0430\u0439\u043b\u043e\u0432 \u043f\u0440\u0435\u0432\u044b\u0441\u0438\u0442 \u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0446\u0438\u0444\u0440, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0446\u0438\u0444\u0440 \u0431\u0443\u0434\u0435\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u043e.\n\n**\u0412\u0430\u0436\u043d\u043e**: \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0446\u0438\u0444\u0440 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0417\u0430\u0442\u0435\u043c \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u0430\u0440\u044b\u0435 \u043b\u043e\u0433-\u0444\u0430\u0439\u043b\u044b \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443.\n\n<!-- request Example -->\nCODE_BLOCK_6\n<!-- end -->\n\n### \u0421\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\n\n<!-- Example binlog_common -->\n\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u0438\u0437 \u0434\u0432\u0443\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u043c\u0438 \u043b\u043e\u0433-\u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b `binlog_common`:\n* \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, `0`): \u043a\u0430\u0436\u0434\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u043b\u043e\u0433-\u0444\u0430\u0439\u043b\u0435. \u0422\u0430\u043a\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0443\u0434\u043e\u0431\u043d\u0430, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043c\u043d\u043e\u0433\u043e \u0442\u0430\u0431\u043b\u0438\u0446, \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e\u0449\u0438\u0445\u0441\u044f \u0432 \u0440\u0430\u0437\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430. \u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u043b\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441 \u043b\u043e\u0433-\u0444\u0430\u0439\u043b\u043e\u043c \u043e\u0434\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u044d\u0442\u043e \u043d\u0435 \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0435.\n* \u041e\u0434\u0438\u043d \u0444\u0430\u0439\u043b \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 (`1`): \u0432\u0441\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043e\u0434\u0438\u043d \u043e\u0431\u0449\u0438\u0439 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u043b\u043e\u0433-\u0444\u0430\u0439\u043b. \u042d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438, \u0442\u0430\u043a \u043a\u0430\u043a \u0438\u0445 \u043c\u0435\u043d\u044c\u0448\u0435. \u041e\u0434\u043d\u0430\u043a\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0444\u0430\u0439\u043b\u044b \u043c\u043e\u0433\u0443\u0442 \u0434\u043e\u043b\u044c\u0448\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f, \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f. \u0422\u0430\u043a\u0436\u0435 \u0434\u0430\u043d\u043d\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u0440\u0438 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u043c\u043d\u043e\u0433\u0438\u0445 \u0442\u0430\u0431\u043b\u0438\u0446, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u044b \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b.\n\n<!-- request binlog_common -->\n\nCODE_BLOCK_7\n<!-- end -->\n\n### \u0421\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u0441\u0431\u0440\u043e\u0441\u0430 \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u0430\n\n<!-- Example binlog_flush -->\n\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0447\u0435\u0442\u044b\u0440\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u0441\u0431\u0440\u043e\u0441\u0430 \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u043e\u0439 `binlog_flush`:"
- },
- "is_code_or_comment": false,
- "model": "openai:gpt-4.1-mini",
- "updated_at": 1766339888
- },
- "__meta": {
- "source_text": "# Binary logging\n\nBinary logging serves as a recovery mechanism for [real-time](../Creating_a_table/Local_tables/Real-time_table.md) table data. When binary logs are enabled, `searchd` records each transaction to the binlog file and utilizes it for recovery following an unclean shutdown. During a clean shutdown, RAM chunks are saved to disk, and all binlog files are subsequently deleted.\n\n## Enabling and disabling binary logging\n\nBy default, binary logging is enabled to safeguard data integrity. On Linux systems, the default location for `binlog.*` files in [Plain mode](../Creating_a_table/Local_tables.md#Defining-table-schema-in-config-%28Plain-mode%29) is `/var/lib/manticore/data/`. In [RT mode](../Creating_a_table/Local_tables.md#Online-schema-management-%28RT-mode%29), binary logs are stored in the `<data_dir>/binlog/` folder, unless specified otherwise.\n\n### Global binary logging configuration\n\n<!-- example binlog_path -->\nTo disable binary logging globally, set `binlog_path` to an empty value in the `searchd` configuration.\nDisabling binary logging requires a restart of the daemon and puts data at risk if the system shuts down unexpectedly.\n\n<!-- request Example -->\n```ini\nsearchd {\n...\n binlog_path = # disable logging\n...\n```\n<!-- end -->\n\n<!-- example binlog_path2 -->\nYou can use the following directive to set a custom path:\n\n<!-- request Example -->\n```ini\nsearchd {\n...\n binlog_path = /var/data\n...\n```\n<!-- end -->\n\n### Per-table binary logging configuration\n\n<!-- Example binlog0 -->\nFor more granular control, binary logging can be disabled at the table level for real-time tables by setting the `binlog` table parameter to `0`. This option is not available for percolate tables.\n\n<!-- request Example -->\n```sql\ncreate table a (id bigint, s string attribute) binlog='0';\n```\n<!-- end -->\n\n<!-- Example binlog_alter -->\nFor existing RT tables, binary logging can also be disabled by modifying the `binlog` parameter.\n\n<!-- request Example -->\n```sql\nalter table FOO binlog='0';\n```\n<!-- end -->\n\n<!-- Example binlog_alter2 -->\nIf binary logging was previously disabled, it can be re-enabled by setting the `binlog` parameter back to `1`:\n\n<!-- request Example -->\n```sql\nalter table FOO binlog='1';\n```\n<!-- end -->\n\n#### Important considerations:\n* **Dependency on global settings**: per-table binary logging settings only take effect if binary logging is globally enabled in the searchd configuration (`binlog_path` must not be empty).\n* **Binary logging status and transaction ID insights**: Modifying the binary logging status of a table forces an immediate [flush of the table](../Securing_and_compacting_a_table/Flushing_RAM_chunk_to_disk.md#FLUSH-TABLE). If you turn off binary logging for a table, its transaction ID (TID) changes to `-1`. This indicates that binary logging is not active, and no changes are being tracked. Conversely, if you start binary logging for a table, its transaction ID becomes a non-negative number (zero or higher). This indicates that the table's changes are now being recorded. You can check the transaction ID by using the command: `SHOW TABLE <name> STATUS`. The transaction ID reflects whether changes to the table are being recorded (non-negative number) or not (`-1`).\n\n## Operations\n\nWhen binary logging is turned on, every change made to an RT table is saved to a log file. If the system shuts down unexpectedly, these logs are used automatically when the system starts again to bring back all the changes that were logged.\n\n### Log size\n\n<!-- Example binlog_max_log_size -->\nDuring normal operations, when the amount of data logged reaches a certain limit (set by `binlog_max_log_size`), a new log file starts. Old log files are kept until all changes in them are completely processed and saved to disk as a disk chunk. If this limit is set to `0`, the log files are kept until the system is properly shut down. By default, there's no limit to how large these files can grow.\n\n<!-- request Example -->\n\n```ini\nsearchd {\n...\n binlog_max_log_size = 16M\n....\n```\n\n<!-- end -->\n\n### Log files\n\n<!-- example binlog_filename_digits -->\n\nEach binlog file is named with a zero-padded number, like `binlog.0000`, `binlog.0001`, etc., typically showing four digits. You can change how many digits the number has with the setting `binlog_filename_digits`. If you have more binlog files than the number of digits can accommodate, the number of digits will be automatically increased to fit all files.\n\n**Important**: To change the number of digits, you must first save all table data and properly shut down the system. Then, delete the old log files and restart the system.\n\n<!-- request Example -->\n```ini\nsearchd {\n...\n binlog_filename_digits = 6\n...\n```\n<!-- end -->\n\n### Binary logging strategies\n\n<!-- Example binlog_common -->\nYou can choose between two ways to manage binary log files, which can be set with the `binlog_common` directive:\n* Separate file for each table (default, `0`): Each table saves its changes in its own log file. This setup is good if you have many tables that get updated at different times. It allows tables to be updated without waiting for others. Also, if there is a problem with one table's log file, it does not affect the others.\n* Single file for all tables (`1`): All tables use the same binary log file. This method makes it easier to handle files because there are fewer of them. However, this could keep files longer than needed if one table still needs to save its updates. This setting might also slow things down if many tables need to update at the same time because all changes have to wait to be written to one file.\n\n<!-- request binlog_common -->\n\n```ini\nsearchd {\n...\n binlog_common = 1\n...\n```\n<!-- end -->\n\n### Binary flushing strategies\n\n<!-- Example binlog_flush -->\nThere are four different binlog flushing strategies, controlled by the `binlog_flush` directive:\n\n* `0` - Data is written to disk (flushed) every second, and Manticore initiates making it secure on the disk ([syncing](https://linux.die.net/man/8/sync)) right after flushing. This method is the fastest, but if the server or computer crashes suddenly, some recently written data that hasn't been secured may be lost.\n* `1` - Data is written to the binlog and synced immediately after each transaction. This method is the safest as it ensures that each change is immediately preserved, but it slows down writing.\n* `2` - Data is written after each transaction, and a sync is initiated every second. This approach offers a balance, writing data regularly and quickly. However, if the computer fails, some of the data that was being secured might not finish saving. Also, syncing may take longer than one second depending on the disk.\n* `3` - Similar to `2`, but it also ensures the binlog file is synced before it is closed due to exceeding `binlog_max_log_size`.\n\nThe default mode is `2`, which writes data after each transaction and starts syncing it every second, balancing speed and safety.\n\n<!-- request Example -->\n```ini\nsearchd {\n...\n binlog_flush = 1 # ultimate safety, low write speed\n...\n}\n```\n<!-- end -->\n\n### Cluster binlog support\n\n<!-- Example binlog_cluster -->\nIn a cluster setup using Galera, node recovery behavior is crucial. Normally, Galera handles node desynchronization via IST (incremental state transfer) if the node was shut down cleanly and its last sequence number (seqno) was properly saved. However, in case of a crash where seqno isn't preserved, Galera will trigger an SST (state snapshot transfer), which is resource-intensive and can significantly slow down the cluster due to high I/O activity.\n\nTo address this, cluster binlog support has been introduced. This feature extends the existing binary logging functionality to help reduce the need for SST by allowing a recovering node to replay missing transactions from local binlogs and rejoin the cluster with a valid seqno.\n\nCluster binlog is enabled by default for any cluster operations. However, it can be disabled by setting the environment variable:\n\n<!-- request binlog_cluster -->\n```bash\nMANTICORE_REPLICATION_BINLOG=0\n```\n<!-- end -->\n\nThis feature reduces downtime and avoids full data transfers by combining the local durability of binary log with Galera distributed sync capabilities.\n\n### Recovery\n\nDuring recovery after an unclean shutdown, binlogs are replayed, and all logged transactions since the last good on-disk state are restored. Transactions are checksummed, so in case of binlog file corruption, garbage data will **not** be replayed; such a broken transaction will be detected and will stop the replay.\n\n### Flushing RT RAM chunks\n\n<!-- Example rt_flush_period -->\nIntensive updates to a small RT table that fully fits into a RAM chunk can result in an ever-growing binlog that can never be unlinked until a clean shutdown. Binlogs essentially serve as append-only deltas against the last known good saved state on disk, and they cannot be unlinked unless the RAM chunk is saved. An ever-growing binlog is not ideal for disk usage and crash recovery time. To address this issue, you can configure `searchd` to perform periodic RAM chunk flushes using the `rt_flush_period` directive. With periodic flushes enabled, `searchd` will maintain a separate thread that checks whether RT table RAM chunks need to be written back to disk. Once this occurs, the respective binlogs can be (and are) safely unlinked.\n\nThe default RT flush period is set to 10 hours.\n\n<!-- request Example -->\n```ini\nsearchd {\n...\n rt_flush_period = 3600 # 1 hour\n...\n}\n```\n<!-- end -->\n\nIt's important to note that `rt_flush_period` only controls the frequency at which checks occur. There are no guarantees that a specific RAM chunk will be saved. For example, it doesn't make sense to regularly re-save a large RAM chunk that only receives a few rows worth of updates. Manticore automatically determines whether to perform the flush using a few heuristics.\n\n<!-- proofread -->\n\n",
- "updated_at": 1768530797,
- "source_md5": "dbe4521084fca8e94c5902795ce685d8"
- }
- }
|