Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wacmkxiaoyi committed Oct 8, 2024
1 parent fd24fe8 commit a22cf56
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
13 changes: 6 additions & 7 deletions manual/config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

```shell
# log mode of gin framework,default release
ZINC_WAL_ENABLE=release
ZINC_WAL_ENABLE=true

# type of storage's engine, i.e., s3
ZINC_STORAGE_TYPE=
Expand Down Expand Up @@ -50,14 +50,13 @@ ZINC_ETCD_PASSWORD=<your etcd password>
```

### Proxy Configurations
If the current node is a proxy node, the term `ZINC_SERVER_MODE` has to be set as **proxy** and the `ZINC_ETCD_ENDPOINTS` has to be pointed (i.e., =127.0.0.1:2379).

```shell
ZINC_CLUSTER_PROXY_LOG_DIR=/opt/seasearch/data/log
ZINC_CLUSTER_PROXY_HOST=0.0.0.0
ZINC_CLUSTER_PROXY_PORT=4082
ZINC_SERVER_MODE=proxy # must be proxy
ZINC_ETCD_ENDPOINTS=127.0.0.1:2379
ZINC_ETCD_PREFIX=/zinc
ZINC_ETCD_PREFIX=<yout etcd perfix, default /zinc>
ZINC_MAX_DOCUMENT_SIZE=1m # Bulk and multisearch limit on the maximum single document,default 1m
ZINC_CLUSTER_MANAGER_ADDR=127.0.0.1:4081 # manager address
```
Expand All @@ -68,14 +67,14 @@ ZINC_CLUSTER_MANAGER_ADDR=127.0.0.1:4081 # manager address
ZINC_CLUSTER_MANAGER_LOG_DIR=/opt/seasearch/data/log
ZINC_CLUSTER_MANAGER_HOST=0.0.0.0
ZINC_CLUSTER_MANAGER_PORT=4081
ZINC_CLUSTER_MANAGER_ETCD_ENDPOINTS=127.0.0.1:2379
ZINC_CLUSTER_MANAGER_ETCD_PREFIX=/zinc
ZINC_CLUSTER_MANAGER_ETCD_ENDPOINTS=<your etcd endpoints>
ZINC_CLUSTER_MANAGER_ETCD_PREFIX=<yout etcd perfix, default /zinc>
```

## Logs Configurations

```shell
ZINC_LOG_OUTPUT=yes #whether to output logs to files, default yes
ZINC_LOG_OUTPUT=true #whether to output logs to files, default yes
ZINC_LOG_DIR=/opt/seasearch/data/log #log directory
ZINC_LOG_LEVEL=debug #log level,default debug
```
7 changes: 3 additions & 4 deletions manual/repo/seasearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ services:
environment:
- ZINC_FIRST_ADMIN_USER=${ZINC_FIRST_ADMIN_USER}
- ZINC_FIRST_ADMIN_PASSWORD=${ZINC_FIRST_ADMIN_PASSWORD}
- ZINC_WAL_ENABLE=${ZINC_WAL_ENABLE:-release}
- GIN_MODE=${GIN_MODE:-release}
- ZINC_WAL_ENABLE=${ZINC_WAL_ENABLE:-true}
- ZINC_STORAGE_TYPE=${ZINC_STORAGE_TYPE}
- ZINC_SHARD_NUM=${ZINC_SHARD_NUM}
- ZINC_MAX_OBJ_CACHE_SIZE=${ZINC_MAX_OBJ_CACHE_SIZE}
Expand All @@ -22,13 +23,11 @@ services:
- ZINC_S3_AWS_REGION=${ZINC_S3_AWS_REGION}
- ZINC_SERVER_MODE=${ZINC_SERVER_MODE}
- ZINC_CLUSTER_ID=${ZINC_CLUSTER_ID}
- ZINC_ETCD_ENDPOINTS=${ZINC_ETCD_ENDPOINTS}
- ZINC_ETCD_USERNAME=${ZINC_ETCD_USERNAME}
- ZINC_ETCD_PASSWORD=${ZINC_ETCD_PASSWORD}
- ZINC_CLUSTER_PROXY_LOG_DIR=${ZINC_CLUSTER_PROXY_LOG_DIR:-/opt/seasearch/data/log}
- ZINC_CLUSTER_PROXY_HOST=${ZINC_CLUSTER_PROXY_HOST:-0.0.0.0}
- ZINC_CLUSTER_PROXY_PORT=${ZINC_CLUSTER_PROXY_PORT:-4082}
- ZINC_SERVER_MODE=${ZINC_SERVER_MODE:-proxy}
- ZINC_ETCD_ENDPOINTS=${ZINC_ETCD_ENDPOINTS:-127.0.0.1:2379}
- ZINC_ETCD_PREFIX=${ZINC_ETCD_PREFIX:-/zinc}
- ZINC_MAX_DOCUMENT_SIZE=${ZINC_MAX_DOCUMENT_SIZE:-1m}
Expand All @@ -38,7 +37,7 @@ services:
- ZINC_CLUSTER_MANAGER_PORT=${ZINC_CLUSTER_MANAGER_PORT:-4081}
- ZINC_CLUSTER_MANAGER_ETCD_ENDPOINTS=${ZINC_CLUSTER_MANAGER_ETCD_ENDPOINTS:-127.0.0.1:2379}
- ZINC_CLUSTER_MANAGER_ETCD_PREFIX=${ZINC_CLUSTER_MANAGER_ETCD_PREFIX:-/zinc}
- ZINC_LOG_OUTPUT=${ZINC_LOG_OUTPUT:-yes}
- ZINC_LOG_OUTPUT=${ZINC_LOG_OUTPUT:-true}
- ZINC_LOG_DIR=${ZINC_LOG_DIR:-/opt/seasearch/data/log}
- ZINC_LOG_LEVEL=${ZINC_LOG_LEVEL:-debug}
networks:
Expand Down

0 comments on commit a22cf56

Please sign in to comment.