-
Create a new LXC container:
sudo lxc-create -n mycouch -t debian -B btrfs -- -r buster --packages nano sudo
-
Setup CouchDB: https://docs.couchdb.org/en/stable/install/unix.html
-
Limit the LXC cpu usage. In
mycouch/config
:limits.cpu.allowance 20%
-
Create a
replication
document to fetchmydb
. -
Create the
mydb
/_security
document. -
Create users in
_users
db. -
Build indexes (https://github.com/awilliams/couchdb-utils)
./couchdb-utils refreshviews mydb --host=admin:[email protected]:5984 -v
-
Remove the LXC cpu limit.
-
Test
Last active
December 21, 2020 10:07
-
-
Save ceremcem/9d701cfd2de3bb90844cca463f7991b2 to your computer and use it in GitHub Desktop.
Checklist to create a new CouchDB backup server from scratch.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment