Page MenuHomePhabricator

[identity] increase number of tasks and enable stickiness on load balancer
ClosedPublic

Authored by varun on Nov 30 2023, 9:07 AM.
Tags
None
Referenced Files
F3333722: D10102.id34196.diff
Thu, Nov 21, 5:02 AM
F3333721: D10102.id34063.diff
Thu, Nov 21, 5:02 AM
F3333720: D10102.id34059.diff
Thu, Nov 21, 5:02 AM
F3333713: D10102.id.diff
Thu, Nov 21, 5:01 AM
F3333705: D10102.diff
Thu, Nov 21, 5:01 AM
Unknown Object (File)
Fri, Nov 1, 1:41 PM
Unknown Object (File)
Wed, Oct 23, 10:19 AM
Unknown Object (File)
Wed, Oct 23, 10:11 AM
Subscribers

Details

Summary

Resolves https://linear.app/comm/issue/ENG-5909/increase-number-of-identity-service-nodes-on-stagingprod

We want to get used to thinking of the identity service as a distributed system. Enabling session stickiness lets us send _finish RPC requests to the same task as the corresponding _start requests by setting a cookie.

Test Plan

https://gist.github.com/vdhanan/07cd60c9474f76d63fa10ef9d909b8ef

used the lb cookie to send a bunch of requests in quick succession, saw in the staging logs that they went to the same task until the cookie expired, at which point they went to both tasks

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

services/identity/Dockerfile
1 ↗(On Diff #34059)

i think we need 1.68+ (they optimized cargo builds in 1.68 i believe) to build images now... was running into OOM issues on 1.67

services/terraform/remote/service_identity.tf
2 ↗(On Diff #34059)

ah need to fix this

varun requested review of this revision.Nov 30 2023, 9:40 AM
bartek added inline comments.
services/identity/Dockerfile
1 ↗(On Diff #34059)

👍 also changed this in D9058 so one of us needs to rebase

services/terraform/remote/service_identity.tf
2 ↗(On Diff #34063)

Just a note: We're moving to semver versioning, so this is going to be 0.5.0.

I'll be bumping versions anyway so there's no need to re-tag existing images

This revision is now accepted and ready to land.Dec 1 2023, 12:26 AM