Git Product home page Git Product logo

Comments (8)

bahamas10 avatar bahamas10 commented on June 4, 2024
$ for i in {1..3}; do triton create -n "machine-$i" minimal-64 t4-standard-128M; done; triton wait machine-{1..3}

is this not sufficient?

from node-triton.

dekobon avatar dekobon commented on June 4, 2024

I've had two customers ask for a change in the API specifically so that they did not have to do a loop because a looping in our stack is problematic.

The problem is that we throttle based on the number of API requests per second. If a customer is pulling other API requests rapidly (say for cloud metrics) and then they need to auto-scale up 10 new instances they will have to do some serious guesswork about how many sleeps (and for how long) they will need to add per createmachine request. Rather, they want to be able to just specify an integer and create N number of machines. The purpose of this feature request was to help the customer by removing that layer of complexity from them.

Moreover, when folks are trying to port from AWS or OpenStack and we don't support an equivalent API, we have added a lot of work.

As for where to implement, I would say at first we should implement in the HTTP API (it is your call about the v1 vs v2 APIs) and then integrate as time permits in the CLI.

from node-triton.

misterbisson avatar misterbisson commented on June 4, 2024

This really is an API request, rather than a cli client issue, but the need is there.

I have trouble understanding how any user can make enough requests to get throttled, but that's orthogonal to the issue that there's a gap in our API that people coming from AWS expect: the ability to create more than one instance in a single request.

from node-triton.

trentm avatar trentm commented on June 4, 2024

I had to look. You mean the -n instance_count from http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/ApiReference-cmd-RunInstances.html right?

from node-triton.

dekobon avatar dekobon commented on June 4, 2024

@trentm Exactly.

from node-triton.

dwlf avatar dwlf commented on June 4, 2024

Similarly in OpenStack it is nova boot --min-count <number> --max-count <number> where

--min-count <number>
Boot at least <number> servers (limited by quota).
--max-count <number>
Boot up to <number> servers (limited by quota).

http://docs.openstack.org/cli-reference/content/novaclient_commands.html#novaclient_subcommand_boot

I was surprised to find that the unified OpenStack client still is a peripheral, it similarly has openstack server create --min --max http://docs.openstack.org/developer/python-openstackclient/command-objects/server.html#server-create .

from node-triton.

trentm avatar trentm commented on June 4, 2024

See https://github.com/joyent/rfd/tree/master/rfd/0025

from node-triton.

trentm avatar trentm commented on June 4, 2024

Really this isn't something we propose to do client side-only, so there isn't great reason to have this ticket linger open. If/when we do CloudAPI changes, we can open issues on node-triton.

from node-triton.

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.