-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CRUD for autoscalers #339
Conversation
|
|
I disagree on the first table column being I think the autoscaler row should include the current scaling of the application, to avoid people to make 2 requests here. |
So finally, no integration in the What happens if I try to scale my app with the CLI? |
I found it really unclear to integrate with the If you manually scale with the CLI, I would like to show a message warning about an autoscaler being present and asking confirmation. |
Ok for the integration with the scale command, but then the UI should be nice. What about the command For the confirmation how will you do that, fetch the autoscalers first to see if one exists and is active, or the API will returns something? |
Can you share how you've updated the style? |
You are right about the For the confirmation, I had the first solution in mind (fetch the autoscalers first) but both are doable. I edited the previous messages with the updated wording of the table |
I still don't know if Active should be the first column =\ |
I had the idea to highlight with a different color the line where the autoscaler is disabled, but then it looked like a christmas tree.. |
Usually colors are not always the best ideas :-D |
|
Typing anything but |
We don't display anything if no autoscaler is defined |
Please rebase |
be5eb51
to
61ad0db
Compare
61ad0db
to
eda5b7a
Compare
apps/ps.go
Outdated
for _, ct := range processes { | ||
name := ct.Name | ||
_, err = autoscalers.GetFromContainerType(app, name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need a cache here, you can't make a list request at each iteration of the loop
(same at the other place of the PR where you're doing this)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see what kind of cache I could use here. Every call to GetFromContainerType
is with different parameters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@EtienneM You get all the autoscalers with a call in #index once, then you look into them instead of making plenty of API requests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Silly me... Sorry. That's obvious to me now
601bd4c
to
67ecc1f
Compare
Please first review Scalingo/go-scalingo#40
scalingo ps
command should display somehow that a given container type has an autoscalerRelated to Scalingo/autoscaler-service#1