Giter Site home page Giter Site logo

Comments (5)

bulju avatar bulju commented on May 20, 2024 1

Hi @davidji99, I just created a PR -> #111
Let me know if you like the philosophy that I took and if you believe that something is missing, I can rewrite it if it's needed!
As I don't have a sandbox environment I wasn't able to test it through the API with all the functionalities, I just ran a terraform plan for environments and now it's working.
But this only covers the "get" use case, not post, patch, etc.

from terraform-provider-split.

jramosf avatar jramosf commented on May 20, 2024 1

The HTTP GET use case should be good enough since the rate limiting happens when the statefile is being refreshed in the plan phase.

Only in the case of updating/recreating a very large Split environment with the provider we may hit the limit if the request happen in parallel.

from terraform-provider-split.

bulju avatar bulju commented on May 20, 2024

I'll work on this and raise a PR @davidji99

from terraform-provider-split.

davidji99 avatar davidji99 commented on May 20, 2024

Hmm, this is interesting. 20 resources at the default parallelization of 10 for terraform seems quite low for a rate limit.

I'm curious, what happens if you set the -parallelism flag to say 5 (terraform apply -parallelism 5)?

In any event, let me raise this issue to my Split contacts.

from terraform-provider-split.

bulju avatar bulju commented on May 20, 2024

I did try adding -parallelism=1 and the issue persists.

Based on their documentation, when you receive a 429 HTTP code (which is the rate limit), they return in their headers how much time you should wait to get a new quota. I guess we could add that to the client for doing a retry logic.

Here there is another provider which had the same issue: okta/terraform-provider-okta#186

Let me know what your contacts say about this issue.

I'm planning to work on this by the end of this week, to have a PR and then we can decide if we merge or not :)

from terraform-provider-split.

Related Issues (10)

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.