-
Notifications
You must be signed in to change notification settings - Fork 105
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
Get Celery working with new redis service #4358
Comments
In order to get this to work, I needed to add both
to the celery conf (see celery/celery#5371)
to the celery-once conf. (see https://github.com/cameronmaske/celery-once/blob/4f68b6b3c8503b9360179a246521b07315cdf577/README.rst#redis-backend) Alternately, it looks like celery and celery-once both support passing
|
Some questions for cloud.gov:
|
Follow-up ticket here: #4393 |
Cloud.gov is transitioning to a managed redis service, which will require some code changes. We should test this service while it's still in
beta
, and give ourselves plenty of time before they retire the old service.Completion criteria
redis32
: how much time do we have to get this working? ➡️ around OctoberTechnical steps
cf create-service SERVICE_NAME PLAN_NAME INSTANCE_NAME
cf create-service redis BETA-redis-5node fec-redis-beta
Celery
is the app connecting toredis
, so we need to look at how those settings need to change. Maybe https://docs.celeryproject.org/en/stable/userguide/configuration.html#broker-use-ssl is what we need. Compare to code examples below, which are pure Redis client examples'none'
to celery settings instead of importingssl
Email from cloud.gov
The cloud.gov team is pleased to announce the launch of a beta of a new Redis broker using AWS Elasticache. This work is an important step in moving cloud.gov towards a more stable and reliable platform by moving away from a bespoke Kubernetes instances to AWS-hosted services.
The intent of the Redis broker beta is to test out the service with a limited number of customers before making it available to all cloud.gov customers. We’ve outlined below a few important things to keep in mind before and while you are using the beta.
The beta can only be used in non-production environments. cloud.gov expects this new service to be in beta for at least two weeks but it could be extended based on artifacts found and customer feedback.
For this beta, the cloud.gov operators will be limiting access to this new broker by specific organizations only. Due to limitations of Cloud Foundry, we can not limit access to specific spaces under an org. We ask that interested customers email [email protected] to request access to the beta and specify the org(s) in which they would like to enable the beta service.
While we took every measure to test the broker before releasing it to beta, testing for performance is one area that is difficult to assess pre-release. Therefore, we will be closely monitoring performance once in beta but we can’t say with certainty that it will be performant as expected.
The cloud.gov team will use the weekly office hours to solicit feedback from you about the beta.
The cloud.gov team reserves the right to update and change the broker and plan details while still in beta testing based on testing and feedback results.
The services instances created in beta testing will not be carried over into production once the service goes General Availability (GA). Once GA is announced, the beta plans will be disabled from creating new instances and deleted a short time later.
Please submit any feedback or support requests about the Redis broker beta to [email protected].
If you would like to participate in the beta, please contact [email protected] to request access to the beta and specify the org(s) in which you would like to enable the beta service.
Technical Notes for the beta release:
The service name will simply be called
redis
The Redis offering will come in three plans:
The current Redis version offered will be 5.0.6
Standard Redis password AUTH will be enabled like our current Redis offering
AWS does require TLS based communications with the cluster which is not native in the Redis client so customers will need to make changes to their applications to use this new service
Python examples:
If customers have successful code changes in various languages that they would like to share examples of with other cloud.gov customers, we encourage PRs to our example repo: https://github.com/cloud-gov/aws-redis-example
Thank you.
The text was updated successfully, but these errors were encountered: