Giter Club home page Giter Club logo

ansible-xtradb-cluster's Introduction

Percona XtraDB Cluster Deployment

This repository contains Ansible scripts for deploying Percona XtraDB Cluster, a high-performance MySQL clustering solution.

Overview

This project uses Ansible playbooks to easily set up Percona XtraDB Cluster on multiple nodes, installs ProxySQL, and connects the proxy to the database nodes .

Prerequisites

Before using this playbook, ensure that the following prerequisites are met:

  • Ansible is installed on the machine running the playbook.
  • Servers/nodes are available with root or sudo access.

Getting Started

Ansible Playbook

  1. Clone this repository to your local machine:

    git clone https://github.com/shayanamiri037/Ansible-Xtradb-Cluster
    cd Ansible-Xtradb-Cluster
    
  2. Define your server nodes in the inventory.ini file:

    [all]
    node1 ansible_host=your-node1-ip ansible_user=your-ssh-user
    node2 ansible_host=your-node2-ip ansible_user=your-ssh-user
    node3 ansible_host=your-node3-ip ansible_user=your-ssh-user
    .
    .
    .
    
    [database_nodes]
    node1 ansible_host=your-node1-ip ansible_user=your-ssh-user
    node2 ansible_host=your-node2-ip ansible_user=your-ssh-user
    node3 ansible_host=your-node3-ip ansible_user=your-ssh-user
    .
    .
    .
    
  3. Set your root password and your proxysql password in password.yaml file.

  4. Customize the MySQL configuration in my.cnf.j2 to suit your requirements.

  5. Customize the Proxysql configuration in proxysql_admin_config.j2 and proxysql_config.j2 to suit your requirements.

  6. Run the playbook

    ansible-playbook -i inventory.ini -b play.yaml

ansible-xtradb-cluster's People

Contributors

shayanamiri037 avatar

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.