[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],null,["# About multiple VPC networking\n\nThis page gives an overview of multiple VPC networking for Memorystore for Valkey. In situations where you only need one VPC network, we recommend (but don't require) using a service connection policy to provision your network, as explained in [Networking overview](/memorystore/docs/valkey/networking).\n\nSetting up networking for multiple VPC networks requires Memorystore users to configure and register up Private Service Connect connections.\n\nFor a tutorial on setting up multiple VPCs using only user-registered connections, see [Set up multiple VPC networks using user-registered Private Service Connect connections](/memorystore/docs/valkey/multiple-vpcs-user-registered-psc-connection).\n\nFor a tutorial on setting up multiple VPCs for instances provisioned with automatically registered connections, see [Configure an existing instance to use multiple VPC networks](/memorystore/docs/cluster/multiple-vpcs-automatically-registered-psc-connection).\n\nPrivate Service Connect connections\n-----------------------------------\n\nThis section explains essential information about Private Service Connect connections for Memorystore.\n\n### Private Service Connect connection basics\n\nFor Memorystore, a Private Service Connect\nconnection consists of two fundamental items:\n\n- An IP address\n- An established connection between a [Private Service Connect endpoint](/vpc/docs/private-service-connect#endpoints) and a Memorystore instance's service attachment\n\n### Private Service Connect connection types\n\nWhen using Memorystore for Valkey, Private Service Connect connections fall into two categories: automatically registered and user-registered. A Memorystore for Valkey instance is compatible with both types.\n\n- **User-registered Private Service Connect connections:** These are self-created and self-registered connections. For Memorystore, user-registered connections are needed for multiple VPC networking setups.\n\n Self-managing these connections has the benefit of giving you control over the subnets, IP addresses, and forwarding rules used to create them. For these connections, you are responsible for their lifecycle (including creating, registering, and deleting them).\n- **Automatically registered Private Service Connect connections:** These are connections created and registered by [Private Service Connect service connectivity automation](/vpc/docs/about-service-connection-policies) for your Memorystore instance. When you create or delete a Memorystore instance, your service connection policy manages the lifecycle of the associated connection by creating, registering, or deleting the connection automatically.\n\n If you already have a Memorystore instance that you've been using, and you want to connect additional VPC networks, you probably have automatically registered connections. If you want to keep these connections because your existing application uses them, you can keep them and only add user-registered connections for new VPCs.\n\n### Application connection requirements\n\nTo connect your application using a multiple VPC networking setup, Memorystore has networking requirements you must meet.\n\nEach VPC network you connect to your Memorystore instance needs to have two Private Service Connect connections (either user-registered or automatically registered). One connection is the discovery connection used for your client to establish connection to the cluster. The other connection is reserved for internal usage by the Memorystore backend.\n\nFor information about connecting your client for an instance that uses only user-registered connections, see [Set up a client connection](/memorystore/docs/cluster/multiple-vpcs-user-registered-psc-connection#step_5_set_up_a_client_connection).\n\nFor information about connecting your client for an instance that uses an automatically registered connection, see [Set up a client connection](/memorystore/docs/cluster/multiple-vpcs-automatically-registered-psc-connection#step_3_set_up_a_client_connection).\n\nFor more general information about setting up connections to services through Private Service Connect endpoints, see [Access published services through endpoints](/vpc/docs/about-accessing-vpc-hosted-services-endpoints).\n\nLimitations\n-----------\n\n- You can have between 1 and 20 VPC networks connected to a single Memorystore instance, and no more than 40 Private Service Connect connections in total\n- To delete a Memorystore instance connected with user-registered Private Service Connect connections, you must [delete](/memorystore/docs/cluster/multiple-vpcs-user-registered-psc-connection#delete_your_psc_connections) and [deregister](/memorystore/docs/cluster/multiple-vpcs-user-registered-psc-connection#deregister_your_private_service_connect_endpoints) the connections first."]]