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
Unknown Object (File)
Fri, Dec 20, 6:21 PM
Unknown Object (File)
Fri, Dec 20, 1:03 AM
Unknown Object (File)
Sun, Dec 15, 3:31 PM
Unknown Object (File)
Sun, Dec 15, 12:25 AM
Unknown Object (File)
Mon, Dec 9, 5:31 PM
Unknown Object (File)
Sun, Dec 8, 11:42 PM
Unknown Object (File)
Nov 22 2024, 1:39 AM
Unknown Object (File)
Nov 22 2024, 12:22 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
Branch
deleteuser (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

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

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