GCP managed notebook connetion to Memorystore

93 Views Asked by At

I have a redis Memorystore instance. I also have a managed notebook in vertex AI.

Connecting the notebook to the redis instance is time out. I got:

ConnectionError: Error 110 connecting to 10...*:6379. Connection timed out.

Is there any configuration I need to do so that the notebook can see the redis instance?

1

There are 1 best solutions below

3
John Hanley On

The problem is the MemoryStore address is a private IP address (RFC 1918). Only systems within the same VPC can connect. Vertex AI is located in a different network. Google offers peering to connect networks together.

Configure VPC network peering for Vertex AI so that it can network with the VPC that contains MemoryStore.

Vertex AI: Set up VPC Network Peering