Skip to content

v0.174.0

Latest

Choose a tag to compare

@ernado ernado released this 05 Dec 14:27
89eecad

Fleet management: running, checking and importing many accounts.

  • fleet.Store, fleet.Manager (#2036): accounts (name, group, pause, labels) and their sessions in a store (DirStore, MemoryStore); the manager starts them, restarts a failed client with a backoff, stops an account whose authorization is lost or that is banned (IsFinal), and adds, removes, starts, stops, restarts, pauses and resumes accounts at runtime.
  • Health checks (#2038): periodic (15 min, spread at random) and on demand; the end of a freeze is found by the check; Manager.Report and Manager.Healthz (503 above a share of unready accounts); gotd.fleet.check.duration.
  • Hooks (#2038): OnLost with the black box record, OnFloodWait, OnTimeout, OnOutlier (Fleet.Run).
  • Groups (#2038): Spec.Group (a proxy, an IP), Fleet.Groups, gotd.fleet.group.connected and the GotdFleetGroupDown alert: a dead proxy apart from banned accounts.
  • Session import (#2037, #2038): session.PyrogramSession (three formats), session.GramJSSession, session.GogramSession (two formats), session.StringSession telling the format by its shape; Manager.Import.
  • TestClientCost (#2034): 12 goroutines and about 100 KB per idle client.

Full Changelog: v0.173.0...v0.174.0