Giter Site home page Giter Site logo

Comments (3)

psadhu avatar psadhu commented on September 27, 2024

INFO 00:02:35,573 REGION set to us-west-2, ASG Name (nnnnn-uswest2)

Does the auto scaling group "nnnnn-uswest2" exist and your instance part of it? The ASG seems to have 0 instances.

from priam.

pcn avatar pcn commented on September 27, 2024

This issue came up with me because of the assumption that the viable AZs are the first 3 returned in a region. I was up late looking at some other stuff last night, but it seems that this message happens when the ASG that the instance is in isn't in the list of ASGs that Priam derives from either priam.zones.available or from the default (your -1a, 1b, and 1c).

This happens in a couple of specific cases for me:

  • one AG, multiple AZs, but instances don't get allocated in B or C, only in A, D, E. The instances in D and E are never found.
  • one AG per AZ, but a typo gets into Priam via the command line (JAVA_OPTS contains multiple layers of quotes, so the first zone became 'us-east-1a with a leading single quote, and the last zone became us-east-1e' with a trailing quote, and these AZs weren't properly matching.

A better error message in this case would help a lot, including a clear list of the zones available vs. the zone that the instance is in.

For my second case, characters in the AZ name that aren't in the set [a-zA-Z0-9-] should probably cause an error.

Lastly, on a related note, if you use cloudformation to launch, there are a dashes in the AG name. It's automatic, there doesn't appear to be a way around this. It's not clear what relevance the "-" character hasn the AG name from the documentation, if any, but it can be inferred that at netflix you use letters and underscore for AG names.

In my fork I've changed the final "-" to a "+" just so that my CF-generated AG names don't get confused, but it would be helpful to understand the assumptions/requirements that underlie all of the AG name and AZ names, and how they can/should be used.

Maybe this is another option for me to add to config when I've finished my current deadlines :)

from priam.

jasobrown avatar jasobrown commented on September 27, 2024

I believe the cloudformation issue was resolved (or at least discussed) in another ticket. For the AZ names, it's probably best to use a properties file (or some similar thing), as you've surely found that cli options get funky fast.

from priam.

Related Issues (20)

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.