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)
Tue, May 21, 7:03 PM
Unknown Object (File)
Mon, May 20, 1:31 AM
Unknown Object (File)
Thu, May 9, 12:52 PM
Unknown Object (File)
Sun, May 5, 5:00 AM
Unknown Object (File)
Thu, Apr 25, 2:03 PM
Unknown Object (File)
Thu, Apr 25, 2:02 PM
Unknown Object (File)
Mar 5 2024, 1:51 AM
Unknown Object (File)
Mar 5 2024, 1:51 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