Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use replication slot or Adjust wal_keep_segments #13

Open
k-ta-yamada opened this issue Nov 17, 2017 · 0 comments
Open

use replication slot or Adjust wal_keep_segments #13

k-ta-yamada opened this issue Nov 17, 2017 · 0 comments

Comments

@k-ta-yamada
Copy link
Owner

k-ta-yamada commented Nov 17, 2017

PostgreSQL本体のレプリケーション機能強化 (3/4)

  • postgresql.conf
    • standby node
      • hot_standby = on
      • hot_standby_feedback = on
    • master node
      • wal_level = hot_standbyreplica
      • max_wal_senders = 2
      • max_replication_slots = 2
  • create(on master node)
    • SELECT * FROM pg_create_physical_replication_slot('a_slot');
  • recovery.conf(on standby node)
    • primary_slot_name = 'a_slot'
  • check
    • SELECT slot_name, active FROM pg_replication_slots;
  • delete
    • SELECT pg_drop_replication_slot('a_slot');

19.6.1. 送出サーバ群

  • max_replication_slots (integer)
  • wal_keep_segments (integer)

26.2.6. レプリケーションスロット

@k-ta-yamada k-ta-yamada self-assigned this Nov 17, 2017
@k-ta-yamada k-ta-yamada changed the title use replication slot or Adjust wal_keep_segments use replication slot or Adjust wal_keep_segments Nov 17, 2017
@k-ta-yamada k-ta-yamada changed the title use replication slot or Adjust wal_keep_segments use replication slot or Adjust wal_keep_segments Nov 17, 2017
@k-ta-yamada k-ta-yamada removed their assignment Nov 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant