Giter Club home page Giter Club logo

mariadb-maxscale-ha's Introduction

logo

MariaDB Enterprise Server / MaxScale Proxy High Availability

youtube

About:

This is a Terraform and Ansible project to provision a high availability MariaDB Enterprise Server deployment on Amazon Web Services. This automation project will create the following system:

  • 3 MariaDB Nodes For Durability & Performance
  • 2 MaxScale Nodes For High Availability

Prerequisites:

Requires Terraform v0.14.4 or above.
Requires Full Ansible 2.10.5 or above. (Not Ansible-Core)

Instructions:

Open a terminal window and clone the repository:

  1. git clone https://github.com/mariadb-ksizemore/mariadb-enterprise-ha-ansible.git
  2. cd into the newly cloned folder
  3. Edit terraform.tfvars and variables.tf files to supply your own variables.
  4. terraform init --var-file="terraform.tfvars"
  5. terraform plan --var-file="terraform.tfvars" (Optional)
  6. terraform apply --var-file="terraform.tfvars" --auto-approve
  7. ansible-playbook provision.yml
Current Approved AWS Image(s)
AMI OS AMI ID Region Zone
centos7 ami-0a4497cbe959da512 us-west-2 us-west-2a

MaxScale GUI Info

  • url: http://<MaxScale_Public_IPv4_DNS>:8989
  • username: admin
  • password: mariadb

Clean Up

  • terraform destroy --var-file="terraform.tfvars" --auto-approve

Testing with JavaDemo

Packages Required:

  • openjdk-17-jdk
  • openjdk-17-jre

STEPS:

  1. Edit Demo.java file and input the MaxScale External IPs.

  2. Execute the code:

cd scripts
javac -cp *.jar Demo.java

mariadb-maxscale-ha's People

Contributors

alejandro-du avatar mariadb-ksizemore avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.