milvus/internal/master
zhenshan.cao c442d50c08 Add global tsoAllocator
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
2020-11-11 14:17:33 +08:00
..
collection Add collection, segment, and partition unittest 2020-11-11 11:22:19 +08:00
controller Enable github action for go unittest 2020-11-09 17:08:48 +08:00
id Add InsertTask and SearchTask to Proxy 2020-11-07 16:18:23 +08:00
informer Add tso for master and add timestamp 2020-10-29 09:31:08 +08:00
mock Add unittest for master 2020-11-07 18:03:52 +08:00
segment Use type alias 2020-11-04 17:58:43 +08:00
timesync Update time tick 2020-11-09 14:09:10 +08:00
tso Add global tsoAllocator 2020-11-11 14:17:33 +08:00
collection_task.go Use type alias 2020-11-04 17:58:43 +08:00
grpc_service.go Add global tsoAllocator 2020-11-11 14:17:33 +08:00
master.go Add global tsoAllocator 2020-11-11 14:17:33 +08:00
meta_table_test.go Enable github action for go unittest 2020-11-09 17:08:48 +08:00
meta_table.go Add MemoryKV, mockkv and tso test 2020-11-06 16:47:18 +08:00
partition_task.go Add Meta table implementation 2020-11-04 16:28:14 +08:00
README.md Refact master and proxy and add etcdutil 2020-10-15 21:31:50 +08:00
scheduler.go Add etcd, metaTable and scheduler in master 2020-10-29 12:39:41 +08:00
task.go Add MemoryKV, mockkv and tso test 2020-11-06 16:47:18 +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