milvus/internal/master
godchen 92bf09c7e6 Add ddstream and scheduler implements
Signed-off-by: godchen <qingxiang.chen@zilliz.com>
2020-11-28 15:26:39 +08:00
..
collection_task_test.go Add ddstream and scheduler implements 2020-11-28 15:26:39 +08:00
collection_task.go Add ddstream and scheduler implements 2020-11-28 15:26:39 +08:00
config_task_test.go Add ddstream and scheduler implements 2020-11-28 15:26:39 +08:00
config_task.go Add ddstream and scheduler implements 2020-11-28 15:26:39 +08:00
config_test.yaml Add ddstream and scheduler implements 2020-11-28 15:26:39 +08:00
global_allocator_test.go Delete pulsar address test and refactor master param table 2020-11-23 18:04:09 +08:00
global_allocator.go Fix query node param table 2020-11-20 17:10:24 +08:00
grpc_service_test.go Add ddstream and scheduler implements 2020-11-28 15:26:39 +08:00
grpc_service.go Add ddstream and scheduler implements 2020-11-28 15:26:39 +08:00
id.go Fix query node param table 2020-11-20 17:10:24 +08:00
master_test.go Add ddstream and scheduler implements 2020-11-28 15:26:39 +08:00
master.go Add ddstream and scheduler implements 2020-11-28 15:26:39 +08:00
meta_table_test.go Add cpu profile 2020-11-26 16:01:31 +08:00
meta_table.go Add cpu profile 2020-11-26 16:01:31 +08:00
param_table_test.go Add ddstream and scheduler implements 2020-11-28 15:26:39 +08:00
param_table.go Add ddstream and scheduler implements 2020-11-28 15:26:39 +08:00
partition_task_test.go Add ddstream and scheduler implements 2020-11-28 15:26:39 +08:00
partition_task.go Add ddstream and scheduler implements 2020-11-28 15:26:39 +08:00
README.md Close pulsar channel 2020-11-12 11:18:23 +08:00
scheduler_test.go Add ddstream and scheduler implements 2020-11-28 15:26:39 +08:00
scheduler.go Add ddstream and scheduler implements 2020-11-28 15:26:39 +08:00
segment_manager_test.go Add ddstream and scheduler implements 2020-11-28 15:26:39 +08:00
segment_manager.go Delete pulsar address test and refactor master param table 2020-11-23 18:04:09 +08:00
system_config_test.go Add ddstream and scheduler implements 2020-11-28 15:26:39 +08:00
system_config.go Add ddstream and scheduler implements 2020-11-28 15:26:39 +08:00
task_test.go Add timeout logic to task in Proxy 2020-11-17 20:00:23 +08:00
task.go Fix query node param table 2020-11-20 17:10:24 +08:00
time_snyc_producer_test.go Add ddstream and scheduler implements 2020-11-28 15:26:39 +08:00
time_sync_producer.go Add ddstream and scheduler implements 2020-11-28 15:26:39 +08:00
timesync_test.go Delete pulsar address test and refactor master param table 2020-11-23 18:04:09 +08:00
timesync.go Add ddstream and scheduler implements 2020-11-28 15:26:39 +08:00
tso.go Fix query node param table 2020-11-20 17:10:24 +08:00

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