milvus/internal/datacoord
Zhen Ye b9a10a2f68
enhance: remove the rpc layer of coordinator when enabling standalone or mixcoord (#37815)
issue: #37764

- add a local client to call local server directly for
querycoord/rootcoord/datacoord.
- enable local client if milvus is running mixcoord or standalone mode.

---------

Signed-off-by: chyezh <chyezh@outlook.com>
2024-11-23 21:36:33 +08:00
..
allocator fix: fix make generate-mockery panic with go1.22 (#36830) 2024-10-17 12:11:31 +08:00
broker fix: fix make generate-mockery panic with go1.22 (#36830) 2024-10-17 12:11:31 +08:00
session fix: datacoord stuck at stopping progress (#36852) 2024-10-17 12:13:37 +08:00
analyze_meta_test.go fix: Record the nodeID before assigning tasks (#36371) 2024-09-28 17:21:15 +08:00
analyze_meta.go fix: Record the nodeID before assigning tasks (#36371) 2024-09-28 17:21:15 +08:00
build_index_policy.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
channel_manager_factory.go fix: drop collection failed if enable streaming service (#37444) 2024-11-07 10:26:26 +08:00
channel_manager_test.go feat: add segment,pipeline, replica and resourcegroup api for WebUI (#37344) 2024-11-07 11:52:25 +08:00
channel_manager.go fix: Data race in datacoord channel manager (#37866) 2024-11-21 19:00:32 +08:00
channel_store_test.go fix: drop collection failed if enable streaming service (#37444) 2024-11-07 10:26:26 +08:00
channel_store.go fix: drop collection failed if enable streaming service (#37444) 2024-11-07 10:26:26 +08:00
channel.go fix: Fill nil schema so that Milvus can watch channel for those upgraded from 2.2 to 2.4 #35695 (#35694) 2024-08-27 10:36:59 +08:00
cluster_test.go enhance: Move datanode/indexnode manager to session pkg (#35634) 2024-08-22 16:02:56 +08:00
cluster.go enhance: Move datanode/indexnode manager to session pkg (#35634) 2024-08-22 16:02:56 +08:00
compaction_l0_view_test.go enhance: Add deltaRowCount in l0 compaction (#33997) 2024-06-20 17:46:01 +08:00
compaction_l0_view.go enhance: Add deltaRowCount in l0 compaction (#33997) 2024-06-20 17:46:01 +08:00
compaction_policy_clustering_test.go enhance: Separate allocator pkg in datacoord (#35622) 2024-08-22 10:06:56 +08:00
compaction_policy_clustering.go enhance: Remove pre-marking segments as L2 during clustering compaction (#36799) 2024-10-23 17:15:28 +08:00
compaction_policy_l0_test.go enhance: Separate allocator pkg in datacoord (#35622) 2024-08-22 10:06:56 +08:00
compaction_policy_l0.go enhance: tidy compaction logs (#37595) 2024-11-12 21:18:29 +08:00
compaction_policy_single_test.go enhance: Separate allocator pkg in datacoord (#35622) 2024-08-22 10:06:56 +08:00
compaction_policy_single.go enhance: tidy compaction logs (#37595) 2024-11-12 21:18:29 +08:00
compaction_queue_test.go fix: Refine compactionTask to avoid data race (#36936) 2024-10-24 09:55:28 +08:00
compaction_queue.go fix: Refine compactionTask to avoid data race (#36936) 2024-10-24 09:55:28 +08:00
compaction_task_clustering_test.go fix: Refine compactionTask to avoid data race (#36936) 2024-10-24 09:55:28 +08:00
compaction_task_clustering.go enhance: Handoff growing segment after sorted (#37385) 2024-11-07 16:08:24 +08:00
compaction_task_l0_test.go fix: Exlude L0 compaction when clustering is executing (#37141) 2024-10-29 06:28:24 +08:00
compaction_task_l0.go fix: Exlude L0 compaction when clustering is executing (#37141) 2024-10-29 06:28:24 +08:00
compaction_task_meta_test.go enhance: Use internal json(sonic) to replace std json lib (#37708) 2024-11-18 10:46:31 +08:00
compaction_task_meta.go enhance: Use internal json(sonic) to replace std json lib (#37708) 2024-11-18 10:46:31 +08:00
compaction_task_mix_test.go fix: Skip mark compaction timeout for mix and l0 compaction (#37118) 2024-10-28 14:33:29 +08:00
compaction_task_mix.go fix: refuse schedule compaction tasks if there is no slot (#37589) 2024-11-13 15:12:30 +08:00
compaction_task.go fix: Refine compactionTask to avoid data race (#36936) 2024-10-24 09:55:28 +08:00
compaction_test.go fix: refuse schedule compaction tasks if there is no slot (#37589) 2024-11-13 15:12:30 +08:00
compaction_trigger_test.go fix: Int64 overflow in JSON encoding (#37657) 2024-11-14 22:52:30 +08:00
compaction_trigger_v2_test.go enhance: Separate allocator pkg in datacoord (#35622) 2024-08-22 10:06:56 +08:00
compaction_trigger_v2.go fix: Separate L0 and Mix trigger interval (#37190) 2024-11-12 10:56:37 +08:00
compaction_trigger.go fix: Separate L0 and Mix trigger interval (#37190) 2024-11-12 10:56:37 +08:00
compaction_view.go enhance: Add deltaRowCount in l0 compaction (#33997) 2024-06-20 17:46:01 +08:00
compaction.go enhance: Increase task capacity and clean illegal task (#37896) 2024-11-21 18:48:32 +08:00
const.go enhance: pass partition key scalar info if enabled when build vector index (#29931) 2024-01-24 00:04:55 +08:00
errors_test.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
errors.go Refine DataCoord status (#27262) 2023-09-26 17:15:27 +08:00
garbage_collector_test.go fix: Int64 overflow in JSON encoding (#37657) 2024-11-14 22:52:30 +08:00
garbage_collector.go enhance: Support gc with bm25 stats logs (#37408) 2024-11-12 11:30:28 +08:00
go_channel_singleton.go fix: Fix improper use of offset in HybridSearch (#36244) 2024-09-13 22:05:15 +08:00
handler_test.go enhance: Handoff growing segment after sorted (#37385) 2024-11-07 16:08:24 +08:00
handler.go enhance: Handoff growing segment after sorted (#37385) 2024-11-07 16:08:24 +08:00
import_checker_test.go enhance: Optimize import scheduling and add time cost metric (#36601) 2024-10-09 14:41:20 +08:00
import_checker.go enhance: Optimize import scheduling and add time cost metric (#36601) 2024-10-09 14:41:20 +08:00
import_job.go fix: Revert "enhance: Support db for bulkinsert (#37012)" (#37420) 2024-11-07 17:02:25 +08:00
import_meta_test.go enhance: Use internal json(sonic) to replace std json lib (#37708) 2024-11-18 10:46:31 +08:00
import_meta.go enhance: Use internal json(sonic) to replace std json lib (#37708) 2024-11-18 10:46:31 +08:00
import_scheduler_test.go enhance: Optimize import scheduling and add time cost metric (#36601) 2024-10-09 14:41:20 +08:00
import_scheduler.go enhance: Optimize import scheduling and add time cost metric (#36601) 2024-10-09 14:41:20 +08:00
import_task.go enhance: Use internal json(sonic) to replace std json lib (#37708) 2024-11-18 10:46:31 +08:00
import_util_test.go enhance: Use internal json(sonic) to replace std json lib (#37708) 2024-11-18 10:46:31 +08:00
import_util.go feat: add tasks page into management WebUI (#37002) 2024-10-28 10:13:29 +08:00
index_engine_version_manager_test.go Optimize the codec code of session (#27360) 2023-10-01 10:33:30 +08:00
index_engine_version_manager.go enhance: Add go-deadlock as unittest only dependency (#33063) 2024-05-15 16:33:34 +08:00
index_meta_test.go enhance: add list index and segment index retrieval API for WebUI (#37861) 2024-11-22 16:58:34 +08:00
index_meta.go enhance: add list index and segment index retrieval API for WebUI (#37861) 2024-11-22 16:58:34 +08:00
index_service_test.go fix: Int64 overflow in JSON encoding (#37657) 2024-11-14 22:52:30 +08:00
index_service.go enhance: Reduce GetIndexInfos calls (#37695) 2024-11-19 14:24:31 +08:00
job_manager_test.go feat: add segment/channel/task/slow query render (#37561) 2024-11-12 17:44:29 +08:00
job_manager.go feat: Introduce stats task for import (#35868) 2024-09-15 15:17:08 +08:00
meta_test.go enhance: add list index and segment index retrieval API for WebUI (#37861) 2024-11-22 16:58:34 +08:00
meta_util.go Make VChannelInfo read compatible with 2.0.2 (#17995) 2022-07-07 21:58:22 +08:00
meta.go enhance: add list index and segment index retrieval API for WebUI (#37861) 2024-11-22 16:58:34 +08:00
metrics_info_test.go enhance: add list index and segment index retrieval API for WebUI (#37861) 2024-11-22 16:58:34 +08:00
metrics_info.go enhance: add list index and segment index retrieval API for WebUI (#37861) 2024-11-22 16:58:34 +08:00
mock_channel_store.go enhance: regenerate datacoord mockery (#37501) 2024-11-07 17:38:24 +08:00
mock_channelmanager.go feat: add segment,pipeline, replica and resourcegroup api for WebUI (#37344) 2024-11-07 11:52:25 +08:00
mock_cluster.go fix: fix make generate-mockery panic with go1.22 (#36830) 2024-10-17 12:11:31 +08:00
mock_compaction_meta.go fix: fix make generate-mockery panic with go1.22 (#36830) 2024-10-17 12:11:31 +08:00
mock_compaction_plan_context.go fix: fix make generate-mockery panic with go1.22 (#36830) 2024-10-17 12:11:31 +08:00
mock_handler.go fix: fix make generate-mockery panic with go1.22 (#36830) 2024-10-17 12:11:31 +08:00
mock_index_engine_version_manager.go fix: fix make generate-mockery panic with go1.22 (#36830) 2024-10-17 12:11:31 +08:00
mock_job_manager.go fix: fix make generate-mockery panic with go1.22 (#36830) 2024-10-17 12:11:31 +08:00
mock_segment_manager.go fix: fix make generate-mockery panic with go1.22 (#36830) 2024-10-17 12:11:31 +08:00
mock_subcluster.go fix: fix make generate-mockery panic with go1.22 (#36830) 2024-10-17 12:11:31 +08:00
mock_test.go enhance: Support custom privilege group for RBAC (#37087) 2024-11-09 08:44:28 +08:00
mock_trigger_manager.go fix: fix make generate-mockery panic with go1.22 (#36830) 2024-10-17 12:11:31 +08:00
OWNERS [skip ci]Update OWNERS files (#11898) 2021-11-16 15:41:11 +08:00
partition_stats_meta_test.go fix: Set current partition stats version to 0 by default when not present (#37299) 2024-10-31 12:48:21 +08:00
partition_stats_meta.go fix: Set current partition stats version to 0 by default when not present (#37299) 2024-10-31 12:48:21 +08:00
policy_test.go fix: Fill nil schema so that Milvus can watch channel for those upgraded from 2.2 to 2.4 #35695 (#35694) 2024-08-27 10:36:59 +08:00
policy.go fix: drop collection failed if enable streaming service (#37444) 2024-11-07 10:26:26 +08:00
README.md [skip ci]Change etcd to lowercase (#9983) 2021-10-15 18:58:37 +08:00
segment_allocation_policy_test.go enhance: Change the fixed value to a ratio for clustering segment size (#35076) 2024-08-01 22:04:14 +08:00
segment_allocation_policy.go fix: Fix large growing segment (#37388) 2024-11-07 17:12:25 +08:00
segment_info_test.go fix: Return all compactTo segments after support split (#36361) 2024-09-20 14:11:11 +08:00
segment_info.go enhance: Remove unnecessary clone in SetState (#37697) 2024-11-15 15:06:30 +08:00
segment_manager_test.go fix: use binlog counter to trigger flush but not stats log (#37037) 2024-10-23 15:07:29 +08:00
segment_manager.go fix: Fix import segments leak in segment manager (#36602) 2024-10-08 10:11:22 +08:00
segment_operator_test.go fix: Prevent clone when selecting segments from meta (#30928) 2024-03-01 13:59:02 +08:00
segment_operator.go enhance: Update stats task to optional (#35947) 2024-09-12 20:37:08 +08:00
server_test.go fix: Int64 overflow in JSON encoding (#37657) 2024-11-14 22:52:30 +08:00
server.go enhance: remove the rpc layer of coordinator when enabling standalone or mixcoord (#37815) 2024-11-23 21:36:33 +08:00
services_test.go fix: Int64 overflow in JSON encoding (#37657) 2024-11-14 22:52:30 +08:00
services.go fix: Change memoryCheck write lock to read lock (#37525) 2024-11-15 10:44:31 +08:00
stats_task_meta_test.go fix: Record the nodeID before assigning tasks (#36371) 2024-09-28 17:21:15 +08:00
stats_task_meta.go feat: add segment,pipeline, replica and resourcegroup api for WebUI (#37344) 2024-11-07 11:52:25 +08:00
sync_segments_scheduler_test.go fix: datacoord stuck at stopping progress (#36852) 2024-10-17 12:13:37 +08:00
sync_segments_scheduler.go fix: datacoord stuck at stopping progress (#36852) 2024-10-17 12:13:37 +08:00
task_analyze.go fix: Record the nodeID before assigning tasks (#36371) 2024-09-28 17:21:15 +08:00
task_index.go enhance: add unify vector index config management (#36846) 2024-11-01 06:18:21 +08:00
task_scheduler_test.go fix: Int64 overflow in JSON encoding (#37657) 2024-11-14 22:52:30 +08:00
task_scheduler.go enhance: Reduce GetIndexInfos calls (#37695) 2024-11-19 14:24:31 +08:00
task_stats_test.go enhance: Remove unnecessary clone in SetState (#37697) 2024-11-15 15:06:30 +08:00
task_stats.go feat: support bm25 logs mixcompaction (#36072) 2024-10-14 16:57:22 +08:00
types.go fix: Record the nodeID before assigning tasks (#36371) 2024-09-28 17:21:15 +08:00
util_test.go enhance: Separate allocator pkg in datacoord (#35622) 2024-08-22 10:06:56 +08:00
util.go enhance: add vector index mgr to remove vector index type dependency (#36843) 2024-10-17 22:15:25 +08:00

Data Coordinator

Data cooridnator(datacoord for short) is the component to organize DataNodes and segments allocations.

Dependency

  • KV store: a kv store has all the meta info datacoord needs to operate. (etcd)
  • Message stream: a message stream to communicate statistics information with data nodes. (Pulsar)
  • Root Coordinator: timestamp, id and meta source.
  • Data Node(s): could be an instance or a cluster, actual worker group handles data modification operations.