milvus/internal/master
sunby 3a1c210098 Add runtime stats to record field stats
Signed-off-by: sunby <bingyi.sun@zilliz.com>
2020-12-21 20:24:40 +08:00
..
README.md
client.go
collection_task.go
collection_task_test.go
config_task.go
config_task_test.go
config_test.yaml
field_id.go
flush_scheduler.go
global_allocator.go
global_allocator_test.go
grpc_service.go
grpc_service_test.go
id.go
index_builder_scheduler.go
index_load_scheduler.go
master.go
master_test.go
meta_table.go
meta_table_test.go
param_table.go
param_table_test.go
partition_task.go
partition_task_test.go
persistence_scheduler_test.go
persistent_scheduler.go
runtime_stats.go
runtime_stats_test.go
scheduler.go
scheduler_test.go
segment_assigner.go
segment_assigner_test.go
segment_manager.go
segment_manager_test.go
stats_processor.go
stats_processor_test.go
system_config.go
system_config_test.go
task.go
task_test.go
time_snyc_producer_test.go
time_sync_producer.go
timesync.go
timesync_test.go
tso.go

README.md

How to start a master

Requirements

Start a etcdv3

./etcd -listen-peer-urls=http://192.168.1.10:12380 -advertise-client-urls=http://192.168.1.10:12379 -listen-client-urls http://0.0.0.0:12379,http://0.0.0.0:14001 -initial-advertise-peer-urls=http://192.168.1.10:12380

Start from code

go run cmd/master.go

Start with docker

What rules does master use to write data to kv storage?

1.find the root path variable ETCD_ROOT_PATH which defined in common/config.go 2.add prefix path segment if the resource is a segement 3.add prefix path collection if the resource is a collection 4.add resource uuid

example

if master create a collection with uuid 46e468ee-b34a-419d-85ed-80c56bfa4e90 the corresponding key in etcd is $(ETCD_ROOT_PATH)/collection/46e468ee-b34a-419d-85ed-80c56bfa4e90