Skip to content

Commit

Permalink
Updated run script with max_workers and num_threads parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
louiezzang committed Dec 16, 2019
1 parent 7d3894e commit 9039d53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ $ ./build.sh cia/faiss-server:latest

## Run the faiss server
```
$ ./run.sh [YOUR_DOCKER_IMAGE_NAME or YOUR_DOCKER_IMAGE_NAME:VERSION] [YOUR_DOCKER_CONTAINER_NAME] [DIM]
$ ./run.sh [YOUR_DOCKER_IMAGE_NAME or YOUR_DOCKER_IMAGE_NAME:VERSION] [YOUR_DOCKER_CONTAINER_NAME] [DIM] [MAX_WORKERS] [NUM_THREADS]
```
eg.
```
$ ./run.sh cia/faiss-server:latest faiss-server 200
$ ./run.sh cia/faiss-server:latest faiss-server 200 1 1
```


Expand Down
5 changes: 3 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
DOCKER_IMAGE=$1
CONTAINER_NAME=$2
DIM=$3
MAX_WORKERS=$4
NUM_THREADS=$5
PORT=50051
#DIM=200
SAVE_PATH="data/index/faiss_server.index"
KEYS_PATH=""
NO_SAVE="false"
NPROBE=1
MAX_WORKERS=10
NUM_THREADS=10

echo "container_name: $CONTAINER_NAME"
echo "port: $PORT"
echo "dim: $DIM"
Expand Down

0 comments on commit 9039d53

Please sign in to comment.