Closed Bug 880173 Opened 11 years ago Closed 11 years ago

Treestatus staging and prod should use different memcached keys since the memcached server is shared

Categories

(Release Engineering :: General, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

References

Details

Attachments

(1 file)

Broken out from bug 879732.

(In reply to Chris Turra [:cturra] from comment #6)
> :edmorley - one thought that i have is if stage and prod are sharing
> memcache keys? i see in the treestatus.wsgi file we define the
> memcached.servers, but don't see any memcache key config. is it possible
> both these environments are using the same keys? and if so, can we add a
> config option to prepend the keys with treestatus_<env> or something similar?


(In reply to Chris AtLee [:catlee] from comment #10)
> The memcached keys do support prefixing, but it's not exposed in a useful
> way right now. I assumed the memcached servers for dev/stage/prod were all
> separate.
> 
> It shouldn't be too hard to support a new config value in the .wsgi that
> gets passed down to modify memcachePrefix.
> 
> https://github.com/mozilla/treestatus/blob/master/treestatus/app.py#L27

Side note: This explains a lot of the weirdness I've seen periodically when using staging! doh!
Attached patch Patch v1Splinter Review
Assignee: nobody → emorley
Status: NEW → ASSIGNED
Attachment #759265 - Flags: review?(catlee)
Attachment #759265 - Flags: review?(catlee) → review+
Thank you :-)

https://github.com/mozilla/treestatus/commit/0a1583f1f19ed732b1d4bb0abd08b8556b49935e

I'll request that the configs be updated prior to push to staging/prod, in the push request bug.
Depends on: 880812
In production :-)
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: Webtools → Tree Management
Product: Tree Management → Release Engineering
Component: Applications: TreeStatus → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: