diff --git a/_po/ja/reference/streaming-replication.po b/_po/ja/reference/streaming-replication.po index 0ec24ba45..170b2c591 100644 --- a/_po/ja/reference/streaming-replication.po +++ b/_po/ja/reference/streaming-replication.po @@ -6,7 +6,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"PO-Revision-Date: 2024-07-08 11:52+0900\n" +"PO-Revision-Date: 2024-07-08 12:04+0900\n" msgid "" "---\n" @@ -42,13 +42,26 @@ msgstr "PGroongaのWALは以下のようにスタンバイのサーバーへ送 msgid "" "```mermaid\n" "sequenceDiagram\n" -" User->>+PostgreSQL backend:INSERT/UPDATE/DELETE\n" -" PostgreSQL backend->>+Primary Table:INSERT/UPDATE/DELETE\n" -" PostgreSQL backend->>+Primary PGroonga WAL:WAL Write\n" -" PostgreSQL backend->>+WAL Sender:Notify write WAL\n" -" WAL Sender->>+Primary PGroonga WAL:Read WAL\n" -" WAL Sender->>+WAL Reciver:Send WAL\n" -" WAL Reciver->>+Standby PGroonga WAL:Write\n" +" box transparent Primary\n" +" participant Primary user\n" +" participant Primary PGroonga\n" +" participant WAL sender\n" +" end\n" +" box transparent Standby\n" +" participant WAL receiver\n" +" participant Standby user\n" +" participant Standby PGroonga\n" +" end" +msgstr "" + +msgid "" +" Primary user->>+Primary PGroonga:INSERT/UPDATE/DELETE\n" +" Note right of Primary PGroonga:Write WAL\n" +" Primary PGroonga->>+WAL sender:Notify write WAL\n" +" WAL sender->>+WAL receiver:Send WAL\n" +" Note right of WAL receiver:Save WAL\n" +" Standby user->>+Standby PGroonga:SELECT\n" +" Note right of Standby PGroonga:Apply saved WAL\n" "```" msgstr "" diff --git a/ja/reference/streaming-replication.md b/ja/reference/streaming-replication.md index a98860638..6876a4e18 100644 --- a/ja/reference/streaming-replication.md +++ b/ja/reference/streaming-replication.md @@ -12,13 +12,24 @@ PGroongaのWALは以下のようにスタンバイのサーバーへ送信され ```mermaid sequenceDiagram - User->>+PostgreSQL backend:INSERT/UPDATE/DELETE - PostgreSQL backend->>+Primary Table:INSERT/UPDATE/DELETE - PostgreSQL backend->>+Primary PGroonga WAL:WAL Write - PostgreSQL backend->>+WAL Sender:Notify write WAL - WAL Sender->>+Primary PGroonga WAL:Read WAL - WAL Sender->>+WAL Reciver:Send WAL - WAL Reciver->>+Standby PGroonga WAL:Write + box transparent Primary + participant Primary user + participant Primary PGroonga + participant WAL sender + end + box transparent Standby + participant WAL receiver + participant Standby user + participant Standby PGroonga + end + + Primary user->>+Primary PGroonga:INSERT/UPDATE/DELETE + Note right of Primary PGroonga:Write WAL + Primary PGroonga->>+WAL sender:Notify write WAL + WAL sender->>+WAL receiver:Send WAL + Note right of WAL receiver:Save WAL + Standby user->>+Standby PGroonga:SELECT + Note right of Standby PGroonga:Apply saved WAL ``` WALをサポートしているといってもクラッシュセーフではないことに注意してください。WALベースのストリーミングレプリケーションをサポートしているだけです。もし、PGroongaのインデックスを更新している最中にPostgreSQLがクラッシュしたら、そのPGroongaのインデックスは壊れるかもしれません。もし、PGroongaのインデックスが壊れたら[`REINDEX`][postgresql-reindex]で作り直さなければいけません。 diff --git a/reference/streaming-replication.md b/reference/streaming-replication.md index 712d61893..2d55ef591 100644 --- a/reference/streaming-replication.md +++ b/reference/streaming-replication.md @@ -12,13 +12,24 @@ PGroonga's WAL send to standby server from primary server as below. ```mermaid sequenceDiagram - User->>+PostgreSQL backend:INSERT/UPDATE/DELETE - PostgreSQL backend->>+Primary Table:INSERT/UPDATE/DELETE - PostgreSQL backend->>+Primary PGroonga WAL:WAL Write - PostgreSQL backend->>+WAL Sender:Notify write WAL - WAL Sender->>+Primary PGroonga WAL:Read WAL - WAL Sender->>+WAL Reciver:Send WAL - WAL Reciver->>+Standby PGroonga WAL:Write + box transparent Primary + participant Primary user + participant Primary PGroonga + participant WAL sender + end + box transparent Standby + participant WAL receiver + participant Standby user + participant Standby PGroonga + end + + Primary user->>+Primary PGroonga:INSERT/UPDATE/DELETE + Note right of Primary PGroonga:Write WAL + Primary PGroonga->>+WAL sender:Notify write WAL + WAL sender->>+WAL receiver:Send WAL + Note right of WAL receiver:Save WAL + Standby user->>+Standby PGroonga:SELECT + Note right of Standby PGroonga:Apply saved WAL ``` Note that WAL support doesn't mean crash safe. It just supports WAL based streaming replication. If PostgreSQL is crashed while PGroonga index update, the PGroonga index may be broken. If the PGroonga index is broken, you need to recreate the PGroonga index by [`REINDEX`][postgresql-reindex].