milvus/internal/master
dragondriver a18ac17a98 Increase timeout interval of task in Proxy
Signed-off-by: dragondriver <jiquan.long@zilliz.com>
2020-11-18 15:44:17 +08:00
..
collection Replace conf struct with ParamsTable 2020-11-16 21:10:43 +08:00
controller Replace conf struct with ParamsTable 2020-11-16 21:10:43 +08:00
id Replace conf struct with ParamsTable 2020-11-16 21:10:43 +08:00
informer Replace conf struct with ParamsTable 2020-11-16 21:10:43 +08:00
paramtable Replace conf struct with ParamsTable 2020-11-16 21:10:43 +08:00
segment Use type alias 2020-11-04 17:58:43 +08:00
timesync Increase timeout interval of task in Proxy 2020-11-18 15:44:17 +08:00
tso Replace conf struct with ParamsTable 2020-11-16 21:10:43 +08:00
collection_task_test.go Start timeSyncMsgProducer in master 2020-11-18 10:14:11 +08:00
collection_task.go Add timeout logic to task in Proxy 2020-11-17 20:00:23 +08:00
grpc_service_test.go Start timeSyncMsgProducer in master 2020-11-18 10:14:11 +08:00
grpc_service.go Refactor master scheduler: show_collections 2020-11-14 15:37:07 +08:00
master.go Start timeSyncMsgProducer in master 2020-11-18 10:14:11 +08:00
meta_table_test.go Add timeout logic to task in Proxy 2020-11-17 20:00:23 +08:00
meta_table.go Add timeout logic to task in Proxy 2020-11-17 20:00:23 +08:00
partition_task_test.go Start timeSyncMsgProducer in master 2020-11-18 10:14:11 +08:00
partition_task.go Refactor master scheduler: describe_collection 2020-11-14 13:06:41 +08:00
README.md Close pulsar channel 2020-11-12 11:18:23 +08:00
scheduler.go Fix SearchTask in Proxy 2020-11-16 17:01:10 +08:00
task_test.go Add timeout logic to task in Proxy 2020-11-17 20:00:23 +08:00
task.go Close pulsar channel 2020-11-12 11:18:23 +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