Git Product home page Git Product logo

cloud-db-factory-horizontal-scaling's Introduction

Mattermost Cloud Database Factory Horizontal Scaling

This repository houses the open-source components of Mattermost Cloud Database Factory Horizontal Scaling. This is a microservice with the purpose of checking capacity in existing Aurora RDS Clusters and trigger Mattermost Cloud Database Factory to spin up additional clusters.

Developing

Environment Setup

  1. Install Go
  2. Specify the region in your AWS config, e.g. ~/.aws/config:
[profile mm-cloud]
region = us-east-1
  1. Generate an AWS Access and Secret key pair, then export them in your bash profile:
export AWS_ACCESS_KEY_ID=YOURACCESSKEYID
export AWS_SECRET_ACCESS_KEY=YOURSECRETACCESSKEY
export AWS_PROFILE=mm-cloud
  1. Clone this repository into your GOPATH (or anywhere if you have Go Modules enabled)
  2. Export the following environment variables:
export RDSMultitenantDBClusterNamePrefix="The DB cluster name prefix"
export RDSMultitenantDBClusterTagPurpose="The DB cluster purpose tag"
export RDSMultitenantDBClusterTagDatabaseType="The DB cluster database type tag"
export MaxAllowedInstallations="The maximum number of installations before requesting a new RDS cluster"
export Environment"The environment running e.g Test"
export DBInstanceType="The type of the DB instance to request from the Database factory"
export TerraformApply="Whether to request a plan or a Terraform apply from the Database factory"
export BackupRetentionPeriod="How long to keep database backups for"
export DatabaseFactoryEndpoint="The endpoint for the database factory"
export MattermostNotificationsHook="The mattermost hook to use for notifications"
export MattermostAlertsHook="The mattermost hook to use for alerts"
export StateStore="The statestore to use for Terraform"

Building

Simply run the following:

$ make build

Running

Run the app with:

$ /go/bin/database-factory-horizontal-scaling

cloud-db-factory-horizontal-scaling's People

Contributors

cpanato avatar stafot avatar stylianosrigas 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.