Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch over to new Redis service (on hold until 1/8) #4393

Closed
17 tasks done
lbeaufort opened this issue Jun 3, 2020 · 1 comment
Closed
17 tasks done

Switch over to new Redis service (on hold until 1/8) #4393

lbeaufort opened this issue Jun 3, 2020 · 1 comment
Assignees
Milestone

Comments

@lbeaufort
Copy link
Member

lbeaufort commented Jun 3, 2020

See #4358 and #4392

app.conf.update(
broker_url=redis_url(),
broker_use_ssl={
'ssl_cert_reqs': ssl.CERT_NONE,
},
redis_backend_use_ssl={
'ssl_cert_reqs': ssl.CERT_NONE,
},
imports=(
'webservices.tasks.refresh',
'webservices.tasks.download',
'webservices.tasks.legal_docs',
),
beat_schedule=schedule,
broker_connection_timeout=30, # in seconds
broker_connection_max_retries=0, # for unlimited retries
task_acks_late=False
)
app.conf.ONCE = {
'backend': 'celery_once.backends.Redis',
'settings': {
'url': redis_url() + "?ssl=true",
'default_timeout': 60 * 60
}
}

Include testing of new Redis service again prior to go live

Current redis service is expected to be removed in the beginning of April 2021. We'll want to have handled this upgrade by February of next year at the latest.

Action items

Create new aws-elasticache-redis service in each space
cf create-service aws-elasticache-redis <plan> fec-elasticache-redis

  • dev (1 node): cf create-service aws-elasticache-redis redis-dev fec-elasticache-redis
  • stage (3 nodes): cf create-service aws-elasticache-redis redis-3node fec-elasticache-redis
  • prod (5 nodes): cf create-service aws-elasticache-redis redis-5node fec-elasticache-redis
  • Wait for the creation to finish
  • Update the manifests to change fec-redis to fec-elasticache-redis
  • Test with a manual deploy
  • Test downloads
    Stage (after release is cut 12/29/20
  • Unbind apps from old service
cf unbind-service api fec-redis 
cf unbind-service celery-beat fec-redis 
cf unbind-service celery-worker fec-redis 
  • Rebuild API, test downloads again
  • Delete service keys, if any
  • Delete old service(s)
cf delete-service fec-redis  

Prod (after release is deployed 1/5/21

  • Unbind apps from old service
  • Delete old service(s)

Completion criteria

We've switched to aws-elasticache-redis service in:

Next steps

Create ticket for switching production when dev/stg are ready

@lbeaufort lbeaufort changed the title Switch over to new Redis service when it goes live Switch over to new Redis service when it goes live (around October?) Jun 10, 2020
@lbeaufort lbeaufort changed the title Switch over to new Redis service when it goes live (around October?) Switch over to new Redis service when it goes live (tentatively around October) Jun 15, 2020
@lbeaufort lbeaufort added this to the Sprint 13.7 milestone Oct 13, 2020
@patphongs patphongs modified the milestones: Sprint 13.7, Sprint 13.8 Oct 28, 2020
@patphongs patphongs changed the title Switch over to new Redis service when it goes live (tentatively around October) Switch over to new Redis service when it goes live Nov 16, 2020
@patphongs patphongs modified the milestones: Sprint 13.8, Sprint 13.9 Nov 16, 2020
@rfultz rfultz changed the title Switch over to new Redis service when it goes live Switch over to new Redis service Dec 1, 2020
@rfultz rfultz modified the milestones: Sprint 13.9, Sprint 13.10 Dec 1, 2020
@patphongs patphongs modified the milestones: Sprint 13.10, Sprint 13.11 Dec 9, 2020
@lbeaufort lbeaufort changed the title Switch over to new Redis service Switch over to new Redis service (on hold until 12/29) Dec 16, 2020
@lbeaufort lbeaufort modified the milestones: Sprint 13.10, Sprint 13.11 Dec 28, 2020
@lbeaufort lbeaufort changed the title Switch over to new Redis service (on hold until 12/29) Switch over to new Redis service (on hold until 1/5 deploy) Dec 29, 2020
@lbeaufort lbeaufort changed the title Switch over to new Redis service (on hold until 1/5 deploy) Switch over to new Redis service (on hold until 1/7) Jan 5, 2021
@lbeaufort lbeaufort changed the title Switch over to new Redis service (on hold until 1/7) Switch over to new Redis service (on hold until 1/8) Jan 5, 2021
@lbeaufort
Copy link
Member Author

No reported issues, so deleted in prod with cf delete-service fec-redis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants