{"id":117887,"date":"2026-10-25T20:00:42","date_gmt":"2026-10-25T12:00:42","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/117887.html"},"modified":"2026-10-25T20:00:42","modified_gmt":"2026-10-25T12:00:42","slug":"kafka%e6%97%a5%e5%bf%97%e5%a4%a7%e7%ae%a1%e5%ae%b6logmanager%ef%bc%9a%e4%b8%8d%e5%a4%84%e7%90%86%e8%af%b7%e6%b1%82%ef%bc%8c%e5%8d%b4%e7%ae%a1%e7%9d%80%e6%89%80%e6%9c%89%e6%95%b0%e6%8d%ae%e6%96%87","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/117887.html","title":{"rendered":"Kafka\u65e5\u5fd7\u5927\u7ba1\u5bb6LogManager\uff1a\u4e0d\u5904\u7406\u8bf7\u6c42\uff0c\u5374\u7ba1\u7740\u6240\u6709\u6570\u636e\u6587\u4ef6"},"content":{"rendered":"<p>\u6458\u8981&#xff1a;\u4e0a\u4e00\u7bc7\u8fdb\u5165\u5b58\u50a8\u5c42&#xff0c;\u770b\u5230\u8bf7\u6c42\u6700\u7ec8\u8c03 Log.append \u843d\u76d8\u3002\u4f46 Broker \u4e0a\u6210\u767e\u4e0a\u5343\u4e2a\u5206\u533a\u7684 Log \u5bf9\u8c61\u662f\u8c01\u521b\u5efa\u7684&#xff1f;Broker \u91cd\u542f\u540e\u600e\u4e48\u77e5\u9053\u54ea\u4e9b\u6570\u636e\u53ef\u9760\u3001\u54ea\u4e9b\u8981\u6062\u590d&#xff1f;\u65e5\u5fd7\u6bb5\u6eda\u52a8\u3001\u8fc7\u671f\u5220\u9664\u3001\u65e5\u5fd7\u538b\u7f29\u3001\u5468\u671f\u5237\u76d8\u53c8\u662f\u8c01\u5728\u540e\u53f0\u9ed8\u9ed8\u505a\u7684&#xff1f;\u7b54\u6848\u90fd\u662f LogManager\u3002\u8fd9\u7bc7\u8bb2\u900f\u8fd9\u4e2a&#034;\u4e0d\u9732\u9762\u4f46\u7ba1\u7740\u5168\u90e8\u6570\u636e\u6587\u4ef6&#034;\u7684\u7ec4\u4ef6\u3002<\/p>\n<p>\u5173\u952e\u8bcd&#xff1a;Kafka LogManager\u3001\u65e5\u5fd7\u52a0\u8f7d\u6062\u590d\u3001recovery point\u3001\u65e5\u5fd7\u4fdd\u7559 retention\u3001\u65e5\u5fd7\u538b\u7f29 compaction\u3001LogSegment \u6eda\u52a8\u3001\u68c0\u67e5\u70b9<\/p>\n<h3>\u4e3a\u4ec0\u4e48\u9700\u8981 LogManager<\/h3>\n<p>\u5148\u8bf4\u4e00\u4e2a\u6211\u8e29\u8fc7\u7684\u5751\u3002\u6709\u53f0 Broker \u5f02\u5e38\u5b95\u673a&#xff08;\u673a\u5668\u6389\u7535&#xff09;&#xff0c;\u91cd\u542f\u540e\u5361\u4e86\u4e8c\u5341\u591a\u5206\u949f\u624d\u5bf9\u5916\u63d0\u4f9b\u670d\u52a1&#xff0c;\u76d1\u63a7\u663e\u793a\u8fd9\u671f\u95f4 CPU \u4e0d\u9ad8\u3001\u4f46\u78c1\u76d8\u8bfb\u5f88\u6d3b\u8dc3\u3002\u5f53\u65f6\u4e0d\u7406\u89e3&#xff1a;Kafka \u91cd\u542f\u4e0d\u5c31\u662f\u6253\u5f00\u51e0\u4e2a\u6587\u4ef6\u5417&#xff0c;\u4e3a\u4ec0\u4e48\u8fd9\u4e48\u6162&#xff1f;<\/p>\n<p>\u540e\u6765\u8bfb\u4e86 LogManager \u7684\u542f\u52a8\u903b\u8f91\u624d\u660e\u767d&#xff1a;\u5b95\u673a\u91cd\u542f\u8981\u5bf9\u6240\u6709\u672a\u5237\u76d8\u786e\u8ba4\u7684\u65e5\u5fd7\u6bb5\u9010\u6761\u6d88\u606f\u505a\u6062\u590d\u2014\u2014\u6821\u9a8c CRC\u3001\u622a\u65ad\u810f\u6570\u636e\u3001\u91cd\u5efa\u7d22\u5f15\u3002\u5206\u533a\u548c\u6bb5\u8d8a\u591a&#xff0c;\u6062\u590d\u8d8a\u6162\u3002\u8fd9\u4ef6\u4e8b\u5c31\u662f LogManager \u5e72\u7684\u3002<\/p>\n<p>\u4e0a\u4e00\u7bc7\u7684\u8bf7\u6c42\u8def\u5f84\u91cc&#xff0c;ReplicaManager \u2192 Partition \u2192 Log&#xff0c;\u770b\u8d77\u6765\u6ca1\u6709 LogManager \u4ec0\u4e48\u4e8b\u3002\u4f46\u6bcf\u4e2a Log \u5bf9\u8c61\u672c\u8eab\u3001Log \u80cc\u540e\u7684\u76ee\u5f55\u548c\u6bb5\u6587\u4ef6\u3001\u4ee5\u53ca Log \u5199\u5b8c\u4e4b\u540e\u7684\u4e00\u5207&#034;\u5584\u540e\u5de5\u4f5c&#034;&#xff0c;\u5168\u5f52 LogManager \u7ba1\u3002\u5b83\u662f Broker \u4e0a\u6240\u6709\u65e5\u5fd7\u7684\u5de5\u5382 &#043; \u7ba1\u5bb6 &#043; \u540e\u53f0\u4efb\u52a1\u8c03\u5ea6\u4e2d\u5fc3\u3002<\/p>\n<h3>01 LogManager \u5728\u5b58\u50a8\u6808\u4e2d\u7684\u4f4d\u7f6e<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261025120036-6addef646e35c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>LogManager \u6bcf\u4e2a Broker \u53ea\u6709\u4e00\u4e2a&#xff0c;\u5728 Broker \u542f\u52a8\u65f6\u521b\u5efa&#xff0c;\u4e3b\u8981\u6301\u6709\u4e09\u6837\u4e1c\u897f&#xff1a;<\/p>\n<p><span class=\"token keyword\">class<\/span> LogManager<span class=\"token punctuation\">(<\/span><br \/>\n  logDirs<span class=\"token operator\">:<\/span> Seq<span class=\"token punctuation\">[<\/span>File<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span>              <span class=\"token comment\">\/\/ \u65e5\u5fd7\u76ee\u5f55\u5217\u8868&#xff08;log.dirs&#xff0c;\u53ef\u914d\u591a\u4e2a\u76d8&#xff09;<\/span><br \/>\n  <span class=\"token keyword\">val<\/span> initialTaskDelayMs<span class=\"token operator\">:<\/span> <span class=\"token builtin\">Long<\/span><span class=\"token punctuation\">,<\/span>    <span class=\"token comment\">\/\/ \u540e\u53f0\u4efb\u52a1\u521d\u59cb\u5ef6\u8fdf<\/span><br \/>\n  scheduler<span class=\"token operator\">:<\/span> KafkaScheduler<span class=\"token punctuation\">,<\/span>       <span class=\"token comment\">\/\/ \u5468\u671f\u4efb\u52a1\u8c03\u5ea6\u5668<\/span><br \/>\n  <span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><br \/>\n  <span class=\"token keyword\">val<\/span> logCleaner<span class=\"token operator\">:<\/span> LogCleaner<span class=\"token punctuation\">,<\/span>      <span class=\"token comment\">\/\/ \u65e5\u5fd7\u538b\u7f29\u7ec4\u4ef6<\/span><br \/>\n  <span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token comment\">\/\/ \u6838\u5fc3&#xff1a;topic-partition -&gt; Log \u7684\u6620\u5c04<\/span><br \/>\n  <span class=\"token keyword\">private<\/span> <span class=\"token keyword\">val<\/span> currentLogs <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">new<\/span> Pool<span class=\"token punctuation\">[<\/span>TopicPartition<span class=\"token punctuation\">,<\/span> Log<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u5b83\u5bf9\u4e0a\u4e0d\u76f4\u63a5\u5904\u7406\u8bf7\u6c42&#xff0c;\u5bf9\u4e0b\u7ba1\u7406\u7740\u78c1\u76d8\u4e0a\u7684\u5b9e\u4f53\u6587\u4ef6\u3002\u4e00\u4e2a Broker \u914d\u7f6e\u591a\u4e2a log.dirs&#xff08;\u5178\u578b\u7684 JBOD \u7528\u6cd5&#xff0c;\u591a\u5757\u76d8\u5206\u62c5 IO&#xff09;&#xff0c;\u6bcf\u4e2a\u76ee\u5f55\u4e0b\u6309 topic\u540d-\u5206\u533a\u53f7 \u7ec4\u7ec7\u5b50\u76ee\u5f55&#xff0c;\u91cc\u9762\u662f\u4e00\u4e2a\u4e2a\u4ee5\u57fa\u51c6 offset \u547d\u540d\u7684 LogSegment \u6587\u4ef6&#xff1a;<\/p>\n<p>\/kafka-data-0\/orders-0\/<br \/>\n  00000000000000000000.log        # \u6570\u636e\u6587\u4ef6<br \/>\n  00000000000000000000.index      # \u504f\u79fb\u91cf\u7a00\u758f\u7d22\u5f15<br \/>\n  00000000000000000000.timeindex  # \u65f6\u95f4\u6233\u7d22\u5f15<br \/>\n  0000000000000000123456.log      # \u6eda\u52a8\u540e\u7684\u65b0\u6bb5<br \/>\n  &#8230;<br \/>\n\/kafka-data-0\/<br \/>\n  recovery-point-offset-checkpoint  # \u5404\u5206\u533a\u5df2\u5237\u76d8\u786e\u8ba4\u4f4d\u7f6e<br \/>\n  log-start-offset-checkpoint       # \u5404\u5206\u533a\u65e5\u5fd7\u4fdd\u7559\u8d77\u70b9<br \/>\n  cleaner-offset-checkpoint         # \u5404\u5206\u533a\u538b\u7f29\u8fdb\u5ea6<br \/>\n  meta.properties                   # \u8bb0\u5f55\u8fd9\u53f0Broker\u7684cluster.id\/broker.id<\/p>\n<p>\u8fd9\u51e0\u4e2a checkpoint \u6587\u4ef6\u662f\u7406\u89e3 LogManager \u7684\u94a5\u5319&#xff0c;\u540e\u9762\u53cd\u590d\u51fa\u73b0\u3002<\/p>\n<h3>02 \u542f\u52a8\u65f6&#xff1a;\u52a0\u8f7d\u4e0e\u6062\u590d\u65e5\u5fd7<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261025120038-6addef665561c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>Broker \u542f\u52a8&#xff0c;LogManager.loadLogs \u8981\u628a\u78c1\u76d8\u4e0a\u7684\u65e5\u5fd7\u5168\u90e8&#034;\u8bfb\u56de\u5185\u5b58&#034;&#xff0c;\u5206\u4e94\u6b65&#xff1a;<\/p>\n<p>\u7b2c\u4e00\u6b65&#xff0c;\u626b\u63cf\u76ee\u5f55\u3002 \u904d\u5386\u6bcf\u4e2a log.dirs&#xff0c;\u8bc6\u522b\u5206\u533a\u5b50\u76ee\u5f55&#xff0c;\u5148\u8bfb meta.properties \u6821\u9a8c broker.id \u548c cluster.id\u2014\u2014\u8fd9\u4e00\u6b65\u9632\u6b62\u8fd0\u7ef4\u628a\u522b\u7684 Broker \u7684\u6570\u636e\u76d8\u8bef\u6302\u5230\u672c\u673a&#xff0c;\u90a3\u4f1a\u9020\u6210\u6570\u636e\u5f52\u5c5e\u6df7\u4e71\u3002<\/p>\n<p>\u7b2c\u4e8c\u6b65&#xff0c;\u4e3a\u6bcf\u4e2a\u5206\u533a\u521b\u5efa Log \u5bf9\u8c61\u3002 \u628a\u76ee\u5f55\u4e0b\u7684 .log\/.index\/.timeindex \u6587\u4ef6\u6309\u6587\u4ef6\u540d\u91cc\u7684\u57fa\u51c6 offset \u6392\u5e8f&#xff0c;\u91cd\u5efa\u51fa LogSegment \u5217\u8868\u3002<\/p>\n<p>\u7b2c\u4e09\u6b65&#xff0c;\u8bfb\u68c0\u67e5\u70b9\u3002 \u91cd\u70b9\u662f recovery point&#xff08;\u6062\u590d\u70b9&#xff09;&#xff1a;\u5b83\u6807\u8bb0&#034;\u8fd9\u4e2a offset \u4e4b\u524d\u7684\u6570\u636e\u5df2\u7ecf fsync \u843d\u76d8\u3001\u786e\u8ba4\u53ef\u9760&#034;&#xff0c;\u4e4b\u540e\u7684\u6570\u636e\u53ef\u80fd\u8fd8\u53ea\u5728\u9875\u7f13\u5b58\u91cc\u3002<\/p>\n<p>\u7b2c\u56db\u6b65&#xff0c;\u5224\u65ad\u662f\u5426\u6062\u590d\u3002 \u8fd9\u91cc\u5c31\u662f\u5f00\u5934\u90a3\u4e2a\u5751\u7684\u6839\u6e90&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ \u5e72\u51c0\u5173\u95ed\u4f1a\u7559\u4e0b .kafka_cleanshutdown \u6807\u8bb0\u6587\u4ef6<\/span><br \/>\n<span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>hasCleanShutdownFile<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token comment\">\/\/ \u6b63\u5e38\u5173\u95ed&#xff1a;\u6240\u6709\u6bb5\u90fd\u53ef\u9760&#xff0c;\u8df3\u8fc7\u6062\u590d&#xff0c;\u5220\u9664\u6807\u8bb0<\/span><br \/>\n<span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">else<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token comment\">\/\/ \u5f02\u5e38\u5b95\u673a&#xff1a;recovery point \u4e4b\u540e\u7684\u6bb5\u5168\u90e8 recoverLog()<\/span><br \/>\n  <span class=\"token comment\">\/\/   \u9010\u6761\u6d88\u606f\u8bfb\u3001\u6821\u9a8cCRC\u3001\u91cd\u5efa\u7d22\u5f15<\/span><br \/>\n  <span class=\"token comment\">\/\/   \u9047\u5230\u635f\u574f\u5904\u622a\u65ad&#xff08;truncate&#xff09;&#xff0c;\u4e22\u5f03\u810f\u6570\u636e<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u7b2c\u4e94\u6b65&#xff0c;\u6ce8\u518c\u5e76\u542f\u52a8\u540e\u53f0\u4efb\u52a1\u3002 Log \u653e\u5165 currentLogs \u6620\u5c04&#xff0c;\u968f\u540e\u542f\u52a8 KafkaScheduler \u548c LogCleaner&#xff0c;Broker \u624d\u771f\u6b63\u5f00\u59cb\u5bf9\u5916\u670d\u52a1\u3002<\/p>\n<p>\u8fd9\u91cc\u6709\u4e2a\u5b9e\u7528\u7ed3\u8bba&#xff1a;Broker \u91cd\u542f\u6162&#xff0c;\u5148\u770b\u662f\u4e0d\u662f\u5f02\u5e38\u5b95\u673a\u5bfc\u81f4\u7684\u65e5\u5fd7\u6062\u590d\u3002\u60f3\u7f29\u77ed\u6062\u590d\u65f6\u95f4&#xff0c;\u4e00\u65b9\u9762\u4fdd\u8bc1\u6b63\u5e38\u5173\u95ed&#xff08;\u8ba9 controlled shutdown \u8d70\u5b8c\u5237\u76d8&#xff09;&#xff0c;\u53e6\u4e00\u65b9\u9762\u8981\u7406\u89e3\u6bb5\u5927\u5c0f\u7684\u5f71\u54cd\u2014\u2014\u6bb5\u5207\u5f97\u8d8a\u5c0f&#xff0c;\u6062\u590d\u65f6\u8981\u626b\u63cf\u7684\u6bb5\u8fb9\u754c\u8d8a\u591a&#xff1b;\u6bb5\u8d8a\u5927&#xff0c;\u5355\u6bb5\u6062\u590d\u65f6\u95f4\u8d8a\u957f&#xff0c;\u9700\u8981\u6743\u8861\u3002<\/p>\n<h3>03 \u8fd0\u884c\u671f&#xff1a;\u56db\u7c7b\u5468\u671f\u4efb\u52a1 &#043; \u538b\u7f29\u7ebf\u7a0b\u6c60<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261025120039-6addef67ed386.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>Broker \u8dd1\u8d77\u6765\u540e&#xff0c;LogManager \u9760\u4e24\u5957\u540e\u53f0\u673a\u5236\u7ef4\u6301\u65e5\u5fd7\u7684&#034;\u5065\u5eb7&#034;\u3002<\/p>\n<p>\u7b2c\u4e00\u5957&#xff1a;KafkaScheduler \u5468\u671f\u5de1\u68c0&#xff0c;\u8d1f\u8d23\u56db\u4ef6\u4e8b&#xff1a;<\/p>\n<ul>\n<li>\u65e5\u5fd7\u6bb5\u6eda\u52a8&#xff08;roll&#xff09;&#xff1a;\u6d3b\u8dc3\u6bb5\u5199\u6ee1 log.segment.bytes&#xff08;\u9ed8\u8ba4 1GB&#xff09;\u6216\u5230\u8fbe log.roll.hours&#xff08;\u9ed8\u8ba4 168 \u5c0f\u65f6&#xff09;\u5c31\u5207\u65b0\u6bb5\u3002\u4e3a\u4ec0\u4e48\u8981\u6eda\u52a8&#xff1f;\u56e0\u4e3a\u53ea\u6709\u5c01\u95ed\u7684\u65e7\u6bb5\u624d\u80fd\u88ab\u5220\u9664\u548c\u538b\u7f29&#xff0c;\u6d3b\u8dc3\u6bb5\u6c38\u8fdc\u5728\u8ffd\u52a0\u3002<\/li>\n<li>\u4fdd\u7559\u5220\u9664&#xff08;retention&#xff09;&#xff1a;\u6309\u65f6\u95f4\u5220\u8d85\u8fc7 log.retention.hours&#xff08;\u9ed8\u8ba4 168 \u5c0f\u65f6 \/ 7 \u5929&#xff09;\u7684\u6bb5&#xff0c;\u6216\u6309\u5927\u5c0f\u5220\u5230 log.retention.bytes \u4ee5\u5185\u3002\u5220\u9664\u65f6\u66f4\u65b0 log-start-offset \u68c0\u67e5\u70b9\u3002<\/li>\n<li>\u5237\u76d8&#xff08;flush&#xff09;&#xff1a;Kafka \u9ed8\u8ba4\u4f9d\u8d56\u64cd\u4f5c\u7cfb\u7edf\u9875\u7f13\u5b58\u5ef6\u8fdf\u5237\u76d8&#xff0c;\u4e5f\u652f\u6301\u6309 log.flush.interval.messages \/ log.flush.interval.ms \u4e3b\u52a8 fsync&#xff0c;\u5237\u5b8c\u63a8\u8fdb recovery point\u3002<\/li>\n<li>\u68c0\u67e5\u70b9\u843d\u76d8&#xff1a;\u5b9a\u671f\u628a recovery point\u3001log start offset \u5199\u56de checkpoint \u6587\u4ef6\u3002<\/li>\n<\/ul>\n<p>\u7b2c\u4e8c\u5957&#xff1a;LogCleaner \u538b\u7f29\u7ebf\u7a0b\u6c60&#xff0c;\u4e13\u95e8\u5904\u7406 cleanup.policy&#061;compact \u7684\u65e5\u5fd7\u3002\u5b83\u7684\u601d\u8def\u662f&#xff1a;\u5bf9\u4e8e\u6309 key \u8bb0\u5f55\u72b6\u6001\u7684 topic&#xff08;\u6bd4\u5982\u6d88\u8d39\u8005\u4f4d\u79fb\u4e3b\u9898 __consumer_offsets\u3001\u914d\u7f6e\u53d8\u66f4\u4e3b\u9898&#xff09;&#xff0c;\u540c\u4e00\u4e2a key \u53ea\u4fdd\u7559\u6700\u65b0\u503c&#xff0c;\u65e7\u7248\u672c\u7269\u7406\u6e05\u9664&#xff1a;<\/p>\n<p>\u538b\u7f29\u524d&#xff08;key&#061;A \u7684\u591a\u6b21\u66f4\u65b0&#xff09;&#xff1a;        \u538b\u7f29\u540e&#xff1a;<br \/>\n  A&#061;1  B&#061;x  A&#061;2  C&#061;y  A&#061;3           B&#061;x  C&#061;y  A&#061;3<br \/>\n  ^^^^^^^ A \u7684\u65e7\u503c\u5168\u5220              \u6bcf\u4e2akey\u53ea\u5269\u6700\u65b0\u503c<\/p>\n<p>\u538b\u7f29\u6d41\u7a0b\u662f&#xff1a;\u6309\u810f\u6570\u636e\u6bd4\u4f8b&#xff08;dirty ratio&#xff0c;\u9ed8\u8ba4 0.5&#xff09;\u6311\u6700\u810f\u7684 Log \u2192 \u5728\u5185\u5b58\u54c8\u5e0c\u8868&#xff08;OffsetMap&#xff0c;\u53bb\u91cd\u7f13\u51b2\u9ed8\u8ba4 128MB&#xff09;\u91cc\u5efa key\u2192\u6700\u65b0offset \u6620\u5c04 \u2192 \u628a\u6709\u6548\u6d88\u606f\u590d\u5236\u91cd\u5199\u6210\u65b0\u6bb5&#xff08;\u4e0d\u662f\u539f\u5730\u6539&#xff09;\u2192 \u63a8\u8fdb cleaner-offset-checkpoint\u3002\u503c\u4e3a null \u7684\u6d88\u606f\u662f tombstone&#xff08;\u5893\u7891&#xff09;&#xff0c;\u8868\u793a\u8fd9\u4e2a key \u88ab\u5220\u9664&#xff0c;\u538b\u7f29\u540e\u4e5f\u4f1a\u5728\u4fdd\u7559\u671f\u540e\u6e05\u6389\u3002<\/p>\n<p>\u51e0\u4e2a\u503c\u5f97\u8bb0\u4f4f\u7684\u5de5\u7a0b\u7ec6\u8282&#xff1a;<\/p>\n<ul>\n<li>\u5220\u9664\u4e0d\u662f\u7acb\u523b\u505a IO&#xff1a;retention \u547d\u4e2d\u7684\u6bb5\u5148\u6539\u540d\u52a0 .deleted \u540e\u7f00&#xff0c;\u7531\u5ef6\u8fdf\u4efb\u52a1\u5f02\u6b65\u771f\u6b63\u5220\u9664&#xff0c;\u907f\u514d\u540e\u53f0\u4efb\u52a1\u957f\u65f6\u95f4\u6301\u9501\u5f71\u54cd\u5199\u5165\u3002<\/li>\n<li>\u538b\u7f29\u6162\u4e0d\u5f71\u54cd\u5237\u76d8\u548c\u6eda\u52a8&#xff1a;\u4e24\u7c7b\u4efb\u52a1\u7528\u4e0d\u540c\u7ebf\u7a0b&#xff0c;log.cleaner.threads \u9ed8\u8ba4\u53ea\u6709 1 \u4e2a&#xff0c;compact \u4e3b\u9898\u591a\u3001\u5199\u5165\u91cf\u5927\u65f6\u9700\u8981\u8c03\u5927&#xff0c;\u5426\u5219\u4f1a\u770b\u5230\u538b\u7f29\u8ddf\u4e0d\u4e0a\u3001\u78c1\u76d8\u6301\u7eed\u6da8\u3002<\/li>\n<li>\u6240\u6709\u8fdb\u5ea6\u90fd\u6709\u68c0\u67e5\u70b9&#xff1a;recovery-point\u3001log-start-offset\u3001cleaner-offset \u4e09\u7c7b\u68c0\u67e5\u70b9&#xff0c;\u4fdd\u8bc1\u4efb\u4f55\u65f6\u523b\u5b95\u673a&#xff0c;\u6062\u590d\u90fd\u4e0d\u4f1a\u91cd\u590d\u52b3\u52a8\u6216\u8bef\u5220\u6570\u636e\u3002<\/li>\n<\/ul>\n<h3>04 \u591a\u76ee\u5f55&#xff08;JBOD&#xff09;\u7684\u7ba1\u7406\u4e0e\u6545\u969c\u5904\u7406<\/h3>\n<p>LogManager \u5bf9\u591a\u4e2a log.dirs \u8fd8\u627f\u62c5\u4e00\u4e2a\u5173\u952e\u804c\u8d23&#xff1a;\u65b0\u5efa\u5206\u533a\u65f6\u6311\u9009\u5269\u4f59\u7a7a\u95f4\u6700\u591a\u7684\u76ee\u5f55&#xff08;\u6309\u53ef\u7528\u78c1\u76d8\u7a7a\u95f4\u8f6e\u8be2\/\u4f18\u9009&#xff09;&#xff0c;\u4ee5\u53ca\u76ee\u5f55\u7ea7\u6545\u969c\u9694\u79bb\u3002<\/p>\n<p>\u67d0\u5757\u76d8\u53d1\u751f IO \u6545\u969c\u65f6&#xff0c;LogManager \u4f1a\u628a\u8fd9\u4e2a\u76ee\u5f55\u6807\u8bb0\u4e3a offline&#xff0c;\u4e0a\u9762\u7684\u5206\u533a\u8fdb\u5165\u5931\u8d25\u72b6\u6001\u5e76\u4e0a\u62a5&#xff0c;Broker \u8fdb\u7a0b\u4e0d\u9000\u51fa\u3001\u5176\u4ed6\u76d8\u7ee7\u7eed\u5de5\u4f5c\u3002\u8fd9\u4e5f\u662f\u7528 JBOD \u7684\u4ee3\u4ef7&#xff1a;\u5355\u76d8\u6545\u969c\u53ea\u5f71\u54cd\u8be5\u76d8\u4e0a\u7684\u5206\u533a&#xff0c;\u4f46\u8fd9\u4e9b\u5206\u533a\u4f1a\u53d8\u6210\u79bb\u7ebf\u526f\u672c&#xff0c;\u4f9d\u8d56\u591a\u526f\u672c\u628a\u5b83\u4eec\u5207\u5230\u5176\u4ed6 Broker\u3002\u751f\u4ea7\u4e0a\u662f\u5426\u7528\u591a\u76ee\u5f55\u3001\u662f\u5426\u4e0a RAID&#xff0c;\u8981\u7ed3\u5408\u8fd9\u79cd\u6545\u969c\u6a21\u578b\u6765\u9009\u3002<\/p>\n<h3>\u5199\u5728\u6700\u540e<\/h3>\n<p>LogManager \u8fd9\u4e2a\u7ec4\u4ef6\u5f88\u5bb9\u6613\u88ab\u8bfb\u6e90\u7801\u7684\u4eba\u8df3\u8fc7\u2014\u2014\u5b83\u4e0d\u5728\u8bf7\u6c42\u70ed\u8def\u5f84\u4e0a&#xff0c;\u6ca1\u6709\u7cbe\u5de7\u7684\u7f51\u7edc\u6a21\u578b&#xff0c;\u4ee3\u7801\u91cc\u5927\u91cf\u662f\u6587\u4ef6\u904d\u5386\u548c\u5b9a\u65f6\u4efb\u52a1\u3002\u4f46\u6b63\u662f\u5b83\u51b3\u5b9a\u4e86\u4e09\u4ef6\u8fd0\u7ef4\u4e2d\u6700\u8981\u547d\u7684\u4e8b&#xff1a;Broker \u91cd\u542f\u8981\u591a\u4e45&#xff08;\u65e5\u5fd7\u6062\u590d&#xff09;\u3001\u78c1\u76d8\u4f1a\u4e0d\u4f1a\u88ab\u5199\u6ee1&#xff08;\u4fdd\u7559\u4e0e\u538b\u7f29&#xff09;\u3001\u5b95\u673a\u4f1a\u4e0d\u4f1a\u4e22\u6570\u636e&#xff08;\u5237\u76d8\u4e0e\u68c0\u67e5\u70b9&#xff09;\u3002<\/p>\n<p>\u8bfb\u5b83\u7684\u56de\u62a5\u4e5f\u5f88\u76f4\u63a5&#xff1a;\u7406\u89e3\u4e86 recovery point&#xff0c;\u5c31\u61c2\u4e86\u91cd\u542f\u6162\u548c\u5237\u76d8\u53c2\u6570\u7684\u5173\u7cfb&#xff1b;\u7406\u89e3\u4e86\u6bb5\u6eda\u52a8&#xff0c;\u5c31\u61c2\u4e86\u4e3a\u4ec0\u4e48\u4fdd\u7559\u5220\u9664\u603b\u662f&#034;\u6ede\u540e&#034;\u7684&#xff1b;\u7406\u89e3\u4e86 compaction&#xff0c;\u5c31\u6562\u628a Kafka \u5f53 key-value \u72b6\u6001\u5b58\u50a8\u7528\u3002\u4e0b\u4e00\u7bc7\u6211\u4eec\u56de\u5230\u70ed\u8def\u5f84&#xff0c;\u6df1\u5165 Log.append&#xff0c;\u770b\u4e00\u6761\u6d88\u606f\u62ff\u5230 offset\u3001\u5199\u8fdb\u6d3b\u8dc3\u6bb5\u7684\u5b8c\u6574\u8fc7\u7a0b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6458\u8981&#xff1a;\u4e0a\u4e00\u7bc7\u8fdb\u5165\u5b58\u50a8\u5c42&#xff0c;\u770b\u5230\u8bf7\u6c42\u6700\u7ec8\u8c03 Log.append \u843d\u76d8\u3002\u4f46 Broker \u4e0a\u6210\u767e\u4e0a\u5343\u4e2a\u5206\u533a\u7684 Log \u5bf9\u8c61\u662f\u8c01\u521b\u5efa\u7684&#xff1f;Broker \u91cd\u542f\u540e\u600e\u4e48\u77e5\u9053\u54ea\u4e9b\u6570\u636e\u53ef\u9760\u3001\u54ea\u4e9b\u8981\u6062\u590d&#xff1f;\u65e5\u5fd7\u6bb5\u6eda\u52a8\u3001\u8fc7\u671f\u5220\u9664\u3001\u65e5\u5fd7\u538b\u7f29\u3001\u5468\u671f\u5237\u76d8\u53c8\u662f\u8c01\u5728\u540e\u53f0\u9ed8\u9ed8\u505a\u7684&#xff1f;\u7b54\u6848\u90fd\u662f LogManager\u3002\u8fd9\u7bc7\u8bb2\u900f\u8fd9\u4e2a\\&#8221;\u4e0d\u9732\u9762\u4f46\u7ba1\u7740\u5168\u90e8\u6570\u636e\u6587\u4ef6\\&#8221;\u7684\u7ec4\u4ef6\u3002<br \/>\n\u5173\u952e\u8bcd&#xff1a;Kafka LogManager\u3001\u65e5\u5fd7\u52a0\u8f7d\u6062\u590d\u3001recove<\/p>\n","protected":false},"author":2,"featured_media":117884,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[868,1114,323],"topic":[],"class_list":["post-117887","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-868","tag-kafka","tag-323"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Kafka\u65e5\u5fd7\u5927\u7ba1\u5bb6LogManager\uff1a\u4e0d\u5904\u7406\u8bf7\u6c42\uff0c\u5374\u7ba1\u7740\u6240\u6709\u6570\u636e\u6587\u4ef6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/117887.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Kafka\u65e5\u5fd7\u5927\u7ba1\u5bb6LogManager\uff1a\u4e0d\u5904\u7406\u8bf7\u6c42\uff0c\u5374\u7ba1\u7740\u6240\u6709\u6570\u636e\u6587\u4ef6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6458\u8981&#xff1a;\u4e0a\u4e00\u7bc7\u8fdb\u5165\u5b58\u50a8\u5c42&#xff0c;\u770b\u5230\u8bf7\u6c42\u6700\u7ec8\u8c03 Log.append \u843d\u76d8\u3002\u4f46 Broker \u4e0a\u6210\u767e\u4e0a\u5343\u4e2a\u5206\u533a\u7684 Log \u5bf9\u8c61\u662f\u8c01\u521b\u5efa\u7684&#xff1f;Broker \u91cd\u542f\u540e\u600e\u4e48\u77e5\u9053\u54ea\u4e9b\u6570\u636e\u53ef\u9760\u3001\u54ea\u4e9b\u8981\u6062\u590d&#xff1f;\u65e5\u5fd7\u6bb5\u6eda\u52a8\u3001\u8fc7\u671f\u5220\u9664\u3001\u65e5\u5fd7\u538b\u7f29\u3001\u5468\u671f\u5237\u76d8\u53c8\u662f\u8c01\u5728\u540e\u53f0\u9ed8\u9ed8\u505a\u7684&#xff1f;\u7b54\u6848\u90fd\u662f LogManager\u3002\u8fd9\u7bc7\u8bb2\u900f\u8fd9\u4e2a&quot;\u4e0d\u9732\u9762\u4f46\u7ba1\u7740\u5168\u90e8\u6570\u636e\u6587\u4ef6&quot;\u7684\u7ec4\u4ef6\u3002 \u5173\u952e\u8bcd&#xff1a;Kafka LogManager\u3001\u65e5\u5fd7\u52a0\u8f7d\u6062\u590d\u3001recove\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/117887.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-25T12:00:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261025120036-6addef646e35c.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/117887.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/117887.html\",\"name\":\"Kafka\u65e5\u5fd7\u5927\u7ba1\u5bb6LogManager\uff1a\u4e0d\u5904\u7406\u8bf7\u6c42\uff0c\u5374\u7ba1\u7740\u6240\u6709\u6570\u636e\u6587\u4ef6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-25T12:00:42+00:00\",\"dateModified\":\"2026-10-25T12:00:42+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/117887.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/117887.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/117887.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Kafka\u65e5\u5fd7\u5927\u7ba1\u5bb6LogManager\uff1a\u4e0d\u5904\u7406\u8bf7\u6c42\uff0c\u5374\u7ba1\u7740\u6240\u6709\u6570\u636e\u6587\u4ef6\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Kafka\u65e5\u5fd7\u5927\u7ba1\u5bb6LogManager\uff1a\u4e0d\u5904\u7406\u8bf7\u6c42\uff0c\u5374\u7ba1\u7740\u6240\u6709\u6570\u636e\u6587\u4ef6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/117887.html","og_locale":"zh_CN","og_type":"article","og_title":"Kafka\u65e5\u5fd7\u5927\u7ba1\u5bb6LogManager\uff1a\u4e0d\u5904\u7406\u8bf7\u6c42\uff0c\u5374\u7ba1\u7740\u6240\u6709\u6570\u636e\u6587\u4ef6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6458\u8981&#xff1a;\u4e0a\u4e00\u7bc7\u8fdb\u5165\u5b58\u50a8\u5c42&#xff0c;\u770b\u5230\u8bf7\u6c42\u6700\u7ec8\u8c03 Log.append \u843d\u76d8\u3002\u4f46 Broker \u4e0a\u6210\u767e\u4e0a\u5343\u4e2a\u5206\u533a\u7684 Log \u5bf9\u8c61\u662f\u8c01\u521b\u5efa\u7684&#xff1f;Broker \u91cd\u542f\u540e\u600e\u4e48\u77e5\u9053\u54ea\u4e9b\u6570\u636e\u53ef\u9760\u3001\u54ea\u4e9b\u8981\u6062\u590d&#xff1f;\u65e5\u5fd7\u6bb5\u6eda\u52a8\u3001\u8fc7\u671f\u5220\u9664\u3001\u65e5\u5fd7\u538b\u7f29\u3001\u5468\u671f\u5237\u76d8\u53c8\u662f\u8c01\u5728\u540e\u53f0\u9ed8\u9ed8\u505a\u7684&#xff1f;\u7b54\u6848\u90fd\u662f LogManager\u3002\u8fd9\u7bc7\u8bb2\u900f\u8fd9\u4e2a\"\u4e0d\u9732\u9762\u4f46\u7ba1\u7740\u5168\u90e8\u6570\u636e\u6587\u4ef6\"\u7684\u7ec4\u4ef6\u3002 \u5173\u952e\u8bcd&#xff1a;Kafka LogManager\u3001\u65e5\u5fd7\u52a0\u8f7d\u6062\u590d\u3001recove","og_url":"https:\/\/www.wsisp.com\/helps\/117887.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-25T12:00:42+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261025120036-6addef646e35c.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/117887.html","url":"https:\/\/www.wsisp.com\/helps\/117887.html","name":"Kafka\u65e5\u5fd7\u5927\u7ba1\u5bb6LogManager\uff1a\u4e0d\u5904\u7406\u8bf7\u6c42\uff0c\u5374\u7ba1\u7740\u6240\u6709\u6570\u636e\u6587\u4ef6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-25T12:00:42+00:00","dateModified":"2026-10-25T12:00:42+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/117887.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/117887.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/117887.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Kafka\u65e5\u5fd7\u5927\u7ba1\u5bb6LogManager\uff1a\u4e0d\u5904\u7406\u8bf7\u6c42\uff0c\u5374\u7ba1\u7740\u6240\u6709\u6570\u636e\u6587\u4ef6"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/117887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=117887"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/117887\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/117884"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=117887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=117887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=117887"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=117887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}