OpenSearch 分散式 Join:在一個查詢中整合日誌、追蹤資料與服務負責人
OpenSearch Distributed Joins: Logs, Traces and Owners in One Query
Amazon OpenSearch Service 新引擎在 OpenSearch 3.9 支援分散式 Join,可透過單一 PPL 或 SQL 查詢連接錯誤日誌與追蹤資料,或加入服務負責人及部署中繼資料。
The usual incident question is "which deploy broke this, and who owns it?" It normally means three tools and a spreadsheet. Amazon OpenSearch Service's new engine now supports distributed joins, which is an attempt to answer it in one query.
This is from the 24 November announcement only. I haven't run it.
What AWS says changed
On OpenSearch 3.9, the new engine now supports:
- Distributed joins, so you can join an error log to its trace, or enrich telemetry with service ownership or deployment metadata, in one PPL or SQL query.
- High-cardinality aggregations over millions of distinct hosts, users or tenants.
- OpenSearch query DSL on the new engine, so existing applications, alerts and integrations that send DSL keep working.
The engine spreads joins and aggregations across data nodes, so you don't have to copy related data into one index first. AWS says you can query multiple petabytes. Routing key support lets you keep related documents on the same shard so lookups and joins on that key stay fast.
No additional charge. Regions: US East (N. Virginia, Ohio), US West (Oregon), Canada (Central), Asia Pacific (Mumbai, Singapore, Sydney, Tokyo), Europe (Frankfurt, Ireland, London, Spain).
Where I'd be careful
- Supported workloads only. The DSL point says "supported analytics workloads". The announcement doesn't list what's unsupported, so test your real queries.
- Routing is a design decision. Choosing a routing key to co-locate joins can create hot shards if the key is skewed (one huge tenant). Pick it from your data, not from the example.
- Join cost. No performance numbers are given. A join across petabytes is still a join. Set time limits.
- Upgrade path. You create or upgrade a domain to 3.9 with the new engine. Try that on a copy first. I covered the 3.9 upgrade checks in an earlier post.
A sensible first test
Take one recurring incident query you currently stitch together by hand, for example: error spike, then trace IDs, then service owner. Load the owner metadata as a small index, write it as a PPL join, and compare run time and effort against your current approach. If it saves a tool switch during an incident, it's worth moving more.
The announcement also mentions AI agents running these queries. That's plausible, but I'd give agents read-only access and a query timeout before anything else.
Do you keep ownership metadata in your observability store today, or somewhere else? That decides how useful this is.
Sources
Drafted with AI assistance. I review and edit every post.
來源:DEV Community · dev.to