Install Redis Slave on App Engine Flex

148 views
Skip to first unread message

Biswajit Mukhopadhyay

unread,
Jul 26, 2019, 9:05:39 AM7/26/19
to Google App Engine

Hi,

I have deployed .Net core app on App Engine Flex. My App Engine flex is configured as Auto Scaling. My app is using Memory Store Redis. I want each instance will have their own Redis Slave (Memory Store Redis will be master) so that each instance can read from their local redis instance which will improve the performance of the app.

How can I install and run Redis Slave on an App Engine Flex. 

Regards,

Biswajit

Julie (cloud platform support)

unread,
Jul 26, 2019, 11:09:01 AM7/26/19
to Google App Engine
You can connect Memorystore for redis with App Engine Flex using this example and if you would like high availability for Memorystore it is available for Redis instances with the Standard Tier configuration. To clarify, do you want the Redis replica to be connected to it's App Engine Flex instance or Memorystore for Redis as if you are interested in the latter, high availability cannot be used as a read replica. 

Biswajit Mukhopadhyay

unread,
Jul 26, 2019, 3:05:44 PM7/26/19
to Google App Engine
I want a read replica (Redis Slave) to be installed in all App Engine Flex instance. Reading from local will increase the performance of the app than reading from Memory Store Redis (Reading operation of our app is much higher than writing operation). Memory Store Redis will be used as a Master and write operation will happen on that Master.

Andrew Gorcester

unread,
Jul 26, 2019, 4:57:35 PM7/26/19
to google-a...@googlegroups.com
May I suggest using a custom runtime? You should be able to install and configure Redis using the Dockerfile system. https://cloud.google.com/appengine/docs/flexible/custom-runtimes/

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/212ed959-6549-4abc-87f1-ebcf3c2a3ea4%40googlegroups.com.

Julie (cloud platform support)

unread,
Jul 29, 2019, 1:11:59 PM7/29/19
to Google App Engine
Connecting local Redis to App Engine seems be address on this tutorial, perhaps this is what you've been looking for. 

Biswajit Mukhopadhyay

unread,
Jul 30, 2019, 10:58:05 AM7/30/19
to Google App Engine
Thanks. I don't have much knowledge in Docker file. I will try.


On Saturday, July 27, 2019 at 2:27:35 AM UTC+5:30, Andrew Gorcester wrote:
May I suggest using a custom runtime? You should be able to install and configure Redis using the Dockerfile system. https://cloud.google.com/appengine/docs/flexible/custom-runtimes/

On Fri, Jul 26, 2019 at 12:05 PM 'Biswajit Mukhopadhyay' via Google App Engine <google-a...@googlegroups.com> wrote:
I want a read replica (Redis Slave) to be installed in all App Engine Flex instance. Reading from local will increase the performance of the app than reading from Memory Store Redis (Reading operation of our app is much higher than writing operation). Memory Store Redis will be used as a Master and write operation will happen on that Master.


On Friday, July 26, 2019 at 8:39:01 PM UTC+5:30, Julie (cloud platform support) wrote:
You can connect Memorystore for redis with App Engine Flex using this example and if you would like high availability for Memorystore it is available for Redis instances with the Standard Tier configuration. To clarify, do you want the Redis replica to be connected to it's App Engine Flex instance or Memorystore for Redis as if you are interested in the latter, high availability cannot be used as a read replica. 

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-a...@googlegroups.com.

Biswajit Mukhopadhyay

unread,
Jul 30, 2019, 10:58:05 AM7/30/19
to Google App Engine
Thanks for the suggestion, but my requirement is to install Redis within App Engine Flex, not in Compute engine. 

Julie (cloud platform support)

unread,
Jul 30, 2019, 1:28:34 PM7/30/19
to Google App Engine
As Redis is a database it doesn't seem installing it on App Engine Flex is typical and this is the suggested method of doing it, by installing it on GCE and deploying with App Engine Flex. Its unclear that a custom runtime would work as that is meant for allowing unsupported runtimes to be used. I have not found any evidence of installing Redis directly with App Engine only through Compute Engine. 
Reply all
Reply to author
Forward
0 new messages