GithubHelp home page GithubHelp logo

Comments (5)

jmealo avatar jmealo commented on September 27, 2024

@patrick-jones it looks like this is now an experimental feature http://pgroonga.github.io/reference/parameters/enable_wal.html

from pgroonga.

kou avatar kou commented on September 27, 2024

I've implemented generic WAL support.
It's included in PGroonga as an experimental feature since PGroonga 1.1.6.

I'm writing document about it. I'll announce it after I've written it.

Anyway, could you test the feature and report your test result?

Here are instructions to use the feature:

  1. Install (or upgrade to) PostgreSQL 9.6 on both master and slaves.

  2. Install (or upgrade to) the latest PGroonga. on both master and slaves

  3. Change postgresql.conf on only master like the followings:

    1. Change wal_level to replica or logical (normal configuration for streaming replication):

      wal_level = replica
      
    2. Increase max_wal_senders like the following (normal configuration for streaming replication):

      max_wal_senders = 5
      
    3. Change pgroonga.enable_wal to on:

      pgroonga.enable_wal = on
      
  4. Add an user for replication to pg_hba.conf on only master like the following (normal configuration for streaming replication):

     local   replication     replica                                trust
     host    replication     replica        127.0.0.1/32            trust
     host    replication     replica        ::1/128                 trust
    
  5. Run PostgreSQL on master.

  6. Create PGroonga indexes on master.

  7. Run SELECT pgroonga.command('io_flush'); and stop updating on master until the below pg_basebackup on slaves is finished.

  8. Run pg_basebackup -h master.example.com -D DB_PATH --xlog --progress -U replica -R on slaves.

  9. Change postgresql.conf on only slaves like the followings:

    1. Change hot_standby to on (normal configuration for streaming replication):

      hot_standby = on
      
  10. Start PostgreSQL on slaves.

See also:

from pgroonga.

patrick-jones avatar patrick-jones commented on September 27, 2024

Very exciting news! I'll try it out this week.

from pgroonga.

kou avatar kou commented on September 27, 2024

Thanks.
http://pgroonga.github.io/reference/replication.html will help you.

from pgroonga.

kou avatar kou commented on September 27, 2024

If you find any problems for replication, please open a new issue.

from pgroonga.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.