milvus/internal/master
zhenshan.cao ee0faddb07 Refactor proxy
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
2021-01-29 09:27:26 +08:00
..
client.go Add dockerfile for index 2021-01-26 09:38:40 +08:00
collection_task.go Add proto for query service loading collection 2021-01-18 19:32:08 +08:00
config_test.yaml Fix bug: address already used 2020-12-07 15:22:20 +08:00
field_id.go Add data codec 2020-12-18 15:21:25 +08:00
flush_scheduler.go Enable proxynode microbatch pulsar msg and enable parallel test 2021-01-23 20:58:46 +08:00
global_allocator_test.go Add test for master 2020-12-24 16:19:42 +08:00
global_allocator.go Fix bug: address already used 2020-12-07 15:22:20 +08:00
grpc_service.go Refactor masterservice 2021-01-24 20:26:35 +08:00
id.go Add procude logic of RocksMQ 2021-01-15 16:06:35 +08:00
index_builder_scheduler.go Add dockerfile for index 2021-01-26 09:38:40 +08:00
index_load_scheduler.go Refactor flush scheduler 2021-01-05 10:57:59 +08:00
index_task.go Enable proxynode microbatch pulsar msg and enable parallel test 2021-01-23 20:58:46 +08:00
master_test.go Refactor proxy 2021-01-29 09:27:26 +08:00
master.go Add soft time tick in proxy service 2021-01-26 13:41:41 +08:00
meta_table_test.go Add proto for query service loading collection 2021-01-18 19:32:08 +08:00
meta_table.go Pass type params when building index 2021-01-05 16:09:14 +08:00
param_table_test.go Add soft time tick in proxy service 2021-01-26 13:41:41 +08:00
param_table.go Add soft time tick in proxy service 2021-01-26 13:41:41 +08:00
partition_task.go Refactor the sructure of proto file 2021-01-22 09:36:18 +08:00
persistence_scheduler_test.go Add dockerfile for index 2021-01-26 09:38:40 +08:00
persistent_scheduler.go Refactor segment manager 2020-12-19 12:55:24 +08:00
README.md Close pulsar channel 2020-11-12 11:18:23 +08:00
runtime_stats_test.go Add runtime stats unittest 2020-12-25 16:08:35 +08:00
runtime_stats.go Add DescribeIndex and DescribeIndexProgress RPC 2020-12-25 15:39:56 +08:00
scheduler_test.go Refactor msgstream 2021-01-20 10:02:59 +08:00
scheduler.go Fix bug: address already used 2020-12-07 15:22:20 +08:00
segment_assigner_test.go Add proto for query service loading collection 2021-01-18 19:32:08 +08:00
segment_assigner.go Add proto for query service loading collection 2021-01-18 19:32:08 +08:00
segment_manager_test.go Add data service 2021-01-19 12:10:49 +08:00
segment_manager.go Add data service 2021-01-19 12:10:49 +08:00
stats_processor_test.go Add proto for query service loading collection 2021-01-18 19:32:08 +08:00
stats_processor.go Add proto for query service loading collection 2021-01-18 19:32:08 +08:00
task_test.go Add proto for query service loading collection 2021-01-18 19:32:08 +08:00
task.go Fix multi rowdata writenode crash bug 2021-01-16 15:06:19 +08:00
time_snyc_producer_test.go Refactor msgstream 2021-01-20 10:02:59 +08:00
time_sync_producer.go Add proto for query service loading collection 2021-01-18 19:32:08 +08:00
timesync_test.go Refactor msgstream 2021-01-20 10:02:59 +08:00
timesync.go Add soft time tick in proxy service 2021-01-26 13:41:41 +08:00
tso.go Fix bug: address already used 2020-12-07 15:22:20 +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