multi-region
БесплатноБез исполняемых скриптовНе проверенMulti-region RAG deployments for latency and resilience. Covers geo-replicated vector stores (Pinecone multi-region, Qdrant cluster, MongoDB Atlas Global…
от claude-dev-suite★ 51 звезда на GitHubОб этом скилле
Multi-Region RAG
Three drivers for multi-region: (1) latency — cut cross-ocean RTT to your users; (2) sovereignty — data must stay in EU / US-only / India; (3) resilience — survive a full region outage. Each implies different architecture.
Reference Architecture
┌──────────────────── Users (global) ─────────────────────┐
│ │
GeoDNS / Anycast LB (Cloudflare, Route 53 geolocation)
│ │
┌───────────┼────────────┬────────────────────────┐
│ │ │ │
US-East EU-West AP-SE-1
┌──────┐ ┌──────┐ ┌──────┐
│ App │ │ App │ │ App │ stateless RAG orchestrator
└──┬───┘ └──┬───┘ └──┬───┘
│ │ │
Embed/Rerank Embed/Rerank Embed/Rerank (regional GPU pools)
│ │ │
Vector DB Vector DB Vector DB (geo-replicated or sharded)
│ │ │
LLM (us-east1) LLM (eu1) LLM (ap-south1) (regional provider endpoints)
Control plane (auth, tenant config, billing) can stay single-region behind the gateway; replicate only the read paths.
Geo-Replicated Vector Stores
Pinecone
- Serverless: single-region per index today; you create one index per region and replicate from the writer region.
- Pods: multi-AZ in-region; multi-region is still an app-layer concern.
Pattern:
from pinecone import Pinecone
pcs = {
"us": Pinecone(api_key=US_KEY).Index("kb-us-east-1"),
"eu": Pinecone(api_key=EU_KEY).Index("kb-eu-west-1"),
"ap": Pinecone(api_key=AP_KEY).Index("kb-ap-se-1"),
}
def query_nearest(region, vector, k=5):
return pcs[region].query(vector=vector, top_k=k, include_metadata=True)
Qdrant Cloud (Cluster)
Qdrant supports multi-node clustering with replication factor per collection:
from qdrant_client import QdrantClient
from qdrant_client.models import VectorParams, Distance
qc = QdrantClient(url="https://your-cluster.qdrant.cloud", api_key=KEY)
qc.create_collection(
collection_name="kb",
vectors_config=VectorParams(size=1024, distance=Distance.COSINE),
replication_factor=3,
write_consistency_factor=2,
shard_number=12,
)
For true geo, run one cluster per region and replicate at the ingest layer (dual-write from Kafka).
MongoDB Atlas Global Clusters
Atlas supports native zoned sharding (by tenant_region shard key). Atlas Vector Search lives on the same cluster, so vector ops inherit the zoning:
- Tenants in zone
EUhave their shards pinned to EU regions. - A vector query from an EU app hits EU shards only.
Weaviate Cluster
Multi-node with replication; cross-region typically means a cluster per region plus app-layer routing. Enterprise Weaviate has read-replica configurations.
Elastic / OpenSearch
Cross-Cluster Replication (CCR) propagates indices from a leader cluster in the writer region to follower clusters in reader regions. Vector fields replicate like any other field.
Per-Region Embedding and Rerank
Embeddings are stateless; deploy TEI/Triton per region and pin routing:
- Each app pod calls the same-region embedder (
http://tei.svc.cluster.local). - Cross-region embedder calls only during disaster failover.
Pre-warm each regional pool with a warmup request on pod start; cold start hurts the first query after region spin-up.
Embedding Cache per Region
Regional cache, not global — cross-region cache hits don't save latency.
# Redis per region; keyed by sha256(text) -> vector
async def embed_cached(text: str, region: str) -> list[float]:
key = f"emb:{region}:{sha256(text)}"
if (v := await redis[region].get(key)) is not None:
return orjson.loads(v)
v = await embed_via_tei(text, region)
await redis[region].setex(key, 86400, orjson.dumps(v))
return v
Common query embeddings get cache-hit rates of 30–60% in chat workloads.
LLM Routing by Latency and Residency
| Provider | Regional endpoints |
|---|---|
| Anthropic (direct API) | us-east, eu-west (beta), expanding |
| AWS Bedrock (Claude) | Many: us-east-1, us-west-2, eu-central-1, ap-northeast-1, ap-southeast-1 |
| GCP Vertex (Claude, Gemini) | All major regions |
| OpenAI (direct) | Global anycast + data residency add-on for EU/KR/JP |
| Azure OpenAI | Many regions; residency per deployment |
Route in the gateway:
REGION_TO_BEDROCK = {
"us": "us-east-1",
"eu": "eu-central-1",
"ap": "ap-southeast-1",
}
def llm_for(region):
import boto3
return boto3.client("bedrock-runtime", region_name=REGION_TO_BEDROCK[region])
Sovereignty: set the region by tenant, not by user IP. A US-resident admin for an EU tenant must still hit EU infra.
Eventual Consistency for Index Updates
Cross-region replication lag is the dominant sou
Установить multi-region в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobWriteEditFAQ
Что делает скилл multi-region?
Multi-region RAG deployments for latency and resilience. Covers geo-replicated vector stores (Pinecone multi-region, Qdrant cluster, MongoDB Atlas Global, Weaviate), per-region embedding/rerank pools, LLM routing to nearest provider region (Anthropic, OpenAI, Bedrock), eventual-consistency strategies for index updates, and failover patterns. USE WHEN: user mentions "multi-region RAG", "global RAG", "geo replication", "RAG failover", "latency routing", "regional LLM endpoint", "disaster recovery RAG" DO NOT USE FOR: single-region scaling - use `rag-production`; LLM gateway vendor routing - use `llm-gateway`; CDN caching - use `rag-caching`
Как установить скилл multi-region?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл multi-region запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic