Code Monkey home page Code Monkey logo

Comments (5)

endofcake avatar endofcake commented on September 13, 2024 1

I'd argue that running lambda it each region separately has some advantages:

  • kind of HA - if lambda service is down in one region (and we've seen it happen), it doesn't affect the others
  • lambda needs to only care about its own region, which keeps its design and configuration simpler
  • iterating over stacks in other regions would be slower and affect cost (even though it's negligible)

We've made chaos lambda part of our automated deployments scoped to a region (along with other region-specific resources, such as SNS topics), and it's working quite well.

from chaos-lambda.

pclifford avatar pclifford commented on September 13, 2024

It should be doable, but in general it's good to keep each region as independent as possible, avoiding things like configuration changes in one region impacting another.

We've realised that the code is small enough to embed in the CloudFormation template (via the ZipFile property), and combined with a solution for #5, it should make at least the code deployment part pretty quick.

What's the main pain point for you at the moment when setting it up for multiple regions?

from chaos-lambda.

cristim avatar cristim commented on September 13, 2024

My use case is that I have an application running in 6 regions, and I would prefer to only run and configure it once to work against all those regions, instead of running it in each and every of those regions.

This doesn't need to be the default behavior, I would just like to have this available as a configuration option.

from chaos-lambda.

cristim avatar cristim commented on September 13, 2024

Another use case I saw yesterday is the support for regions where Lambda is not yet supported, such as California, Brazil or Mumbai.

A multi-region model would allow a Lambda function deployed in Virginia to randomly terminate instances there.

from chaos-lambda.

pclifford avatar pclifford commented on September 13, 2024

While we'd still recommend using a different instance of the lambda per region you're right that some regions don't yet support running lambda functions at all, so the latest version should now optionally be able to target ASGs in other regions.

Details are in README.md under the "Regions" heading, but basically: create a regions.txt file in the src/ folder with a newline-separated list of regions, bundle that up with the code (make zip), upload this to a S3 bucket in the region you want to run the lambda, then create the stack using the lambda.json template rather than lambda_standalone.json.

Slightly convoluted, but there doesn't seem to be a more direct way to trigger a lambda with arbitrary configuration values?

from chaos-lambda.

Related Issues (6)

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.