Comments (5)
@patrick-jones it looks like this is now an experimental feature http://pgroonga.github.io/reference/parameters/enable_wal.html
from pgroonga.
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:
-
Install (or upgrade to) PostgreSQL 9.6 on both master and slaves.
-
Install (or upgrade to) the latest PGroonga. on both master and slaves
-
Change
postgresql.conf
on only master like the followings:-
Change
wal_level
toreplica
orlogical
(normal configuration for streaming replication):wal_level = replica
-
Increase
max_wal_senders
like the following (normal configuration for streaming replication):max_wal_senders = 5
-
Change
pgroonga.enable_wal
toon
:pgroonga.enable_wal = on
-
-
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
-
Run PostgreSQL on master.
-
Create PGroonga indexes on master.
-
Run
SELECT pgroonga.command('io_flush');
and stop updating on master until the belowpg_basebackup
on slaves is finished. -
Run
pg_basebackup -h master.example.com -D DB_PATH --xlog --progress -U replica -R
on slaves. -
Change
postgresql.conf
on only slaves like the followings:-
Change
hot_standby
toon
(normal configuration for streaming replication):hot_standby = on
-
-
Start PostgreSQL on slaves.
See also:
from pgroonga.
Very exciting news! I'll try it out this week.
from pgroonga.
Thanks.
http://pgroonga.github.io/reference/replication.html will help you.
from pgroonga.
If you find any problems for replication, please open a new issue.
from pgroonga.
Related Issues (20)
- Two queries for the same string return different results HOT 5
- Build on arch linux use version 3.2.0, get Package 'groonga', required by 'virtual:world', not found HOT 2
- ERROR: ライブラリ"/usr/lib/postgresql/15/lib/pgroonga.so"をロードできませんでした: libarrow.so.1600: 共有オブジェクトファイルを開けません HOT 5
- Add support for Ubuntu 24.04
- Add index name to error message of `PGrnLookup()` and its family HOT 1
- Use Meson as build system
- ci package: migrate test environment from Docker to Incus base HOT 13
- packages yum: drop support for CentOS 7
- PGroonga 3.2.1 HOT 2
- PGDG tag in the package names HOT 3
- ci macos: incorrect PostgreSQL library version referenced (PostgreSQL 14 instead of 15) HOT 7
- Different results of `&@` with index or without HOT 1
- Can't use Homebrew's PGroonga with Postgres.app HOT 7
- Rotate pgroonga.log with `--log-rotate-threshold-size` of Groonga HOT 2
- Error Occurs When Inserting Large text Files Twice HOT 16
- [android] termux build HOT 20
- Crash when specifying `pgroonga.log_type = file` on Windows HOT 4
- could not load library "/usr/lib/postgresql/pgroonga.so": libmsgpackc.so.2: cannot open shared object file: No such file or directory HOT 9
- PGroonga 3.2.3 HOT 9
- PGroonga 3.2.4 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgroonga.