feat: show autoscaling min and max on ECS services

Aperta
#152 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
aws, rust
Ambito
cli, cloud

Direzione di ricerca

Read docs/recipes/README.md and the ECS services view PR to locate AwsClients, EcsServiceInfo, and the services view. Add the Application Auto Scaling client, fetch scalable targets once per refresh, and match ECS resource IDs to service rows; test matching IDs that do and do not match. Done means the range, -, and ? states display correctly, docs and a changeset are included, and the listed Rust checks pass. Start after issue #151 is merged.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

size: M

Why

Each Fells service scales on request count between a min and a max. Without the range, you cannot tell whether running at 2 tasks is normal or the ceiling.

Steps

  1. New crate aws-sdk-applicationautoscaling. Add the client to AwsClients.
  2. Call describe_scalable_targets with service namespace ecs once per refresh. Resource IDs look like service/<cluster>/<service>; match them to EcsServiceInfo rows.
  3. Add scaling_min and scaling_max (Option<i32>) to EcsServiceInfo and a scaling column (for example 1-4, or - when not autoscaled).
  4. If the autoscaling call fails, the column shows ?, not -. Test the matching function with a resource ID that does and does not match.

Where to look

  • the ECS services view PR

Done when

  • Column shows the range
  • Matching function tested
  • Docs and changeset
  • cargo fmt --all, cargo clippy --all-targets -- -D warnings, and cargo test --all pass, with output pasted in the PR

Check against AWS

Optional. Unit tests are enough for this issue.

Blocked by

#151. Start this after that is merged.

Size: M. Read docs/recipes/README.md before starting.

Lingua principale
Rust
Stelle
2
Fork
0
Merge medio
4h 8m
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fells-code/seamless-glance

Tutte le issue di fells-code/seamless-glance

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.