Giter VIP home page Giter VIP logo

Comments (13)

schmutze avatar schmutze commented on July 24, 2024

Thanks, will take a look.

from ec2-fleet-plugin.

akennealy avatar akennealy commented on July 24, 2024

Thanks! fyi, we're on latest.

Jenkins ver. 2.164.1
EC2 fleet plugin: 1.1.9

from ec2-fleet-plugin.

jcalvilloitrs avatar jcalvilloitrs commented on July 24, 2024

We've got same problem more than 45,693,448 Requests in April
Jenkins ver. 2.164.2 LTS
EC2 fleet plugin: 1.1.9

from ec2-fleet-plugin.

akennealy avatar akennealy commented on July 24, 2024

@jcalvilloitrs sorry to hear that you're also running into the same issue as us. For us, this is becoming a critical issue since all of our AWS calls are being used up.

Do you have more than one fleet setup?

from ec2-fleet-plugin.

jcalvilloitrs avatar jcalvilloitrs commented on July 24, 2024

@akennealy We had till yesterday 3 fleet and reduced to just only one

from ec2-fleet-plugin.

akennealy avatar akennealy commented on July 24, 2024

@schmutze, have you had a chance to take a look at this one?

I've cloned the repo and started looking at the code. Looks like a large number of the api requests are being made in com.amazon.jenkins.ec2fleet.EC2FleetCloud#updateStatus. I've added some logging and rebuilt the plugin, planning to deploy this to Jenkins.

from ec2-fleet-plugin.

jcalvilloitrs avatar jcalvilloitrs commented on July 24, 2024

@akennealy we updated all plugins (there is an update for another ec2 plugin) and restart jenkins, issue seems to be solved. there is no increase api petitions and bill keeps stable.

from ec2-fleet-plugin.

akennealy avatar akennealy commented on July 24, 2024

Thanks @jcalvilloitrs! I'll take a look.

I'm currently running a custom build of the plugin with a change I made to reduce the fleet check from running every 10 seconds to run every 60 seconds. As a workaround, this greatly reduced the AWS API requests being called!

from ec2-fleet-plugin.

terma avatar terma commented on July 24, 2024

@akennealy have you tried update suggested to @jcalvilloitrs or increased interval works fine for you? I think it makes sense to increase refresh interval by default and allow to configure it if someone really need 10 sec

from ec2-fleet-plugin.

akennealy avatar akennealy commented on July 24, 2024

I tried reverting my custom build with a increased interval from 10 sec to 60 sec. We very soon after starting seeing builds failing with AWS request limit exceeded. I'm going back to my custom build to increase the limit...

from ec2-fleet-plugin.

terma avatar terma commented on July 24, 2024

Hi @akennealy,

I think I found the problem and have a fix for it, the plugin doesn't need to reduce refresh time from 10 sec to 1 min instead it can use batch mode for EC2 API. Details in PR #75

It will be really nice if you can try it before release, branch check-terminated-in-batch thx

from ec2-fleet-plugin.

terma avatar terma commented on July 24, 2024

Hi @akennealy, @jcalvilloitrs fix released 1.2.2. I'm going to close issue, feel free to reopen it if you still see problems or have questions, thx

from ec2-fleet-plugin.

terma avatar terma commented on July 24, 2024

just in case if this problem still valid plugin

  • 1.11.2 has significant reduction for API call rate
  • 1.12.0 allows to configure interval time

from ec2-fleet-plugin.

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.