Giter Site home page Giter Site logo

chimera-deploy / chimera Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 5.31 MB

Chimera automates canary deployments for containerized microservices running on AWS Fargate, orchestrated by AWS ECS, and communicating via AWS App Mesh.

Home Page: https://chimera-deploy.dev

JavaScript 89.21% Dockerfile 0.44% HTML 2.05% CSS 8.30%
aws-appmesh aws-ecs aws-fargate canary aws-cloudwatch prometheus deployment-automation docker

chimera's Introduction

chimera logo

Chimera

Chimera automates canary deployments for containerized microservices that communicate synchronously on AWS. It reduces the risk of introducing bugs that propagate through your microservice infrastructure by gradually shifting traffic to a canary version of your service while automating simple threshold canary analysis.

chimera diagram

Currently, Chimera supports canary deployments for microservices that run on ECS/Fargate and communicate via App Mesh. For monitoring metrics, Chimera uses a Prometheus-configured CloudWatch agent that Chimera must set up before it can perform canary deployments.

For more information, please see Chimera's official webpage.

Installation and Setup

Chimera is deployed with Docker-Compose. Please ensure that both Docker and Docker-Compose are running on your machine.

To install Chimera, clone this repository. You can use the following terminal command:

git clone https://github.com/chimera-deploy/Chimera.git && cd Chimera

Once you are inside the Chimera directory, create an .env file and add the following:

AWS_ACCESS_KEY_ID=<your aws access key id>
AWS_SECRET_ACCESS_KEY=<your aws secret access key>

Save that file and close it. Once that is complete, you only need to execute the following command:

docker-compose up

Chimera will now be ready to set up the Prometheus-configured CloudWatch agent in your ECS cluster. You can access Chimera's UI at port 3000. Once there, have Chimera perform the automatic deployment of the CloudWatch agent unless you've already had Chimera do this before. After the CloudWatch agent is set up, your teams can perform canary deployments on your microservices.

To remove Chimera from your machine, simply execute:

docker-compose down

Team

Ohio, USA

Pennsylvania, USA

Massachusettes, USA

Show your support

Give a ⭐️ if you liked this project!


chimera's People

Contributors

jleath avatar trevordkelly avatar w-h-a avatar wor101 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

chimera's Issues

remove AWS SDK references from chimera file

Right now we have the AWS sdk helper functions returning the response from the AWS client, we should have those functions return the part of the response we actually need for the main deployment file.

For example:

const vnResponse = await createVirtualNode(/* args */);
this.virtualNode = vnResponse.virtualNode;

should just be:

const virtualNode = await createVirtualNode(/* args */);

Fix Unhandled Promise Reject in unhappy path

Unhandled promise rejection triggered by line 55 in CloudWatch.js when trying to deploy unhappy path.

created virtual node
registered task definition
created ECS service
waiting for cloudmap
finished deploying canary
attempting to shift traffic
values downstream/ingress 500: []
values downstream/ingress 500: [ 0, 0 ]
values downstream/ingress 500: [ 5, 1, 0, 0 ]
(node:14151) UnhandledPromiseRejectionWarning: Error: the canary is not healthy
    at getHealthCheck (/home/wor101/capstone/strange-chimera/prototype/autoCanarySDK/services/CloudWatch.js:55:11)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:14151) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 593)
(node:14151) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

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.