XecOps
  • Home
  • About
Taggged

Database

A collection of 3 posts

PostgreSQL Replication High Availability
database

PostgreSQL Replication High Availability

Kali ini penulis mencoba untuk menulis lebih tepatnya sebagai catatan dari hasil oprek PostgreSQL High Availability. Untuk osnya penulis menggunakan CentosOS 7. Kebutuhan 4 VM: VM1: Node DB1 Vm2: Node DB2 VM3: Node ETCD VM4: Node HAProxy Di setiap node tambahkan ip dan hostname

  • Mahyuddin
Mahyuddin 14 July 2018 • 6 min read
How to Replication Mysql Master to Master
database

How to Replication Mysql Master to Master

Setting up hosts on VM1 and VM2, example: vim /etc/hosts Add: 192.168.57.201 saka.id 192.168.57.202 sira.id Configuration on VM1: mysql mysql> GRANT REPLICATION SLAVE ON *.* TO 'repl_user'@'%' IDENTIFIED BY 'secretpassword'; mysql> FLUSH PRIVILEGES; Configuration MySQL, disable config like (expire_logs_days, max_binlog_size dan bind-address).

  • Mahyuddin
Mahyuddin 28 November 2017 • 3 min read
Backup MongoDB Database
database

Backup MongoDB Database

Simple bash script to backup MongoDB database from production server to another backup server Create directories: $ mkdir ~/dump $ mkdir ~/script_backups Create base script, like backup-db.sh: $ touch ~/scipt_backups/backup-db.sh $ chmod +x ~/script_backups/backup-db.

  • Mahyuddin
Mahyuddin 15 July 2017 • 1 min read
XecOps © 2023
    Latest Posts
Made with Powered by Hugo 0.115.1