Coder Social home page Coder Social logo

Comments (5)

tmitchel2 avatar tmitchel2 commented on July 20, 2024

You should just be able to specify the min and max to the same value and that's it, if that's not working then that would be a bug. I don't think I would change it to fixed as it would only save a single line in that case... Am I understand you correctly?

from dynamodb-lambda-autoscale.

cast avatar cast commented on July 20, 2024

Hi Tom,

When you use the min and max values alone, no increment or decrements to that value are performed due to the following code blocks such as in the isReadCapacityIncrementRequired function in the Provisioner.js file line 50:

if (config.ReadCapacity.Increment == null) {
     return false;
}

When adding an "Increment" or "Decrement" attrbute you also seem to need at least a "To" attribute and an empty "When" block. Otherwise either no change is performed or "not defined errors" occur.

from dynamodb-lambda-autoscale.

cast avatar cast commented on July 20, 2024

Small update, the minimum required configuration for a working fixed value currently is:

{
  "ReadCapacity": {
    "Min": 1,
    "Max": 1,
    "Increment":{
      "When":{}
    },
    "Decrement":{
      "When":{}
    }
  },
  "WriteCapacity": {
    "Min": 1,
    "Max": 1,
    "Increment":{
      "When":{}
    },
    "Decrement":{
      "When":{}
    }
  }
}

from dynamodb-lambda-autoscale.

tmitchel2 avatar tmitchel2 commented on July 20, 2024

Ok that's a bug then, I'm making some other changes at the moment and I'll put a fix in for this also. Thanks

from dynamodb-lambda-autoscale.

tmitchel2 avatar tmitchel2 commented on July 20, 2024

Just checked a fix, should work now

from dynamodb-lambda-autoscale.

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.