Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cloudacademy/aurora-multimaster

AWS Aurora Multi Master Demonstration
https://github.com/cloudacademy/aurora-multimaster

aurora aws cloudacademy devops multi-master mysql python

Last synced: 3 months ago
JSON representation

AWS Aurora Multi Master Demonstration

Awesome Lists containing this project

README

        

# Amazon Aurora Multi-Master

```
sudo apt-get install mysql-client
sudo apt install python3-pip
pip3 install mysql-connector-python
```

```
HOST=
MYSQL_PWD=cloudacademy mysql -h $HOST -u admin demo
```

```
select @@hostname;
```

```
CREATE DATABASE demo;
```

```
CREATE TABLE course (
title VARCHAR(40),
instructor VARCHAR(40),
duration INT,
created DATE,
url VARCHAR(256)
);
```

```
INSERT INTO course (title, instructor, duration, created, url) VALUES ('Course1', 'Jeremy Cook', 100, '1999-03-30', 'http://here.com');
```

```
AURORA_NODE1=
AURORA_NODE2=

watch -n1 "MYSQL_PWD=cloudacademy mysql -h $AURORA_NODE1 -u admin demo -e 'select count(*) from course'"
```

```
AURORA_NODE1=
AURORA_NODE2=

MYSQL_PWD=cloudacademy mysql -h $AURORA_NODE1 -u admin -e 'ALTER SYSTEM CRASH'
```