Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ProductivitySuite]: Update service port number #879

Merged
merged 3 commits into from
Oct 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[ProductivitySuite]: Update service port number
Update port number for prompt registry microservice with respect to
changes observed in GenAIComps service itself.

Signed-off-by: Yeoh, Hoong Tee <hoong.tee.yeoh@intel.com>
hteeyeoh committed Sep 26, 2024

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
commit ba17dba734811565c53b079a51f6feb288be53cb
12 changes: 6 additions & 6 deletions ProductivitySuite/docker_compose/intel/cpu/xeon/README.md
Original file line number Diff line number Diff line change
@@ -168,8 +168,8 @@ export CHAT_HISTORY_CREATE_ENDPOINT="http://${host_ip}:6012/v1/chathistory/creat
export CHAT_HISTORY_CREATE_ENDPOINT="http://${host_ip}:6012/v1/chathistory/create"
export CHAT_HISTORY_DELETE_ENDPOINT="http://${host_ip}:6012/v1/chathistory/delete"
export CHAT_HISTORY_GET_ENDPOINT="http://${host_ip}:6012/v1/chathistory/get"
export PROMPT_SERVICE_GET_ENDPOINT="http://${host_ip}:6015/v1/prompt/get"
export PROMPT_SERVICE_CREATE_ENDPOINT="http://${host_ip}:6015/v1/prompt/create"
export PROMPT_SERVICE_GET_ENDPOINT="http://${host_ip}:6018/v1/prompt/get"
export PROMPT_SERVICE_CREATE_ENDPOINT="http://${host_ip}:6018/v1/prompt/create"
export KEYCLOAK_SERVICE_ENDPOINT="http://${host_ip}:8080"
export LLM_SERVICE_HOST_PORT_FAQGEN=9002
export LLM_SERVICE_HOST_PORT_CODEGEN=9001
@@ -393,7 +393,7 @@ Please refer to **[keycloak_setup_guide](keycloak_setup_guide.md)** for more det

```bash
curl -X 'POST' \
http://{host_ip}:6015/v1/prompt/create \
http://{host_ip}:6018/v1/prompt/create \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
@@ -405,14 +405,14 @@ Please refer to **[keycloak_setup_guide](keycloak_setup_guide.md)** for more det

```bash
curl -X 'POST' \
http://{host_ip}:6015/v1/prompt/get \
http://{host_ip}:6018/v1/prompt/get \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"user": "test"}'

curl -X 'POST' \
http://{host_ip}:6015/v1/prompt/get \
http://{host_ip}:6018/v1/prompt/get \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
@@ -423,7 +423,7 @@ Please refer to **[keycloak_setup_guide](keycloak_setup_guide.md)** for more det

```bash
curl -X 'POST' \
http://{host_ip}:6015/v1/prompt/delete \
http://{host_ip}:6018/v1/prompt/delete \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
Original file line number Diff line number Diff line change
@@ -319,7 +319,7 @@ services:
image: ${REGISTRY:-opea}/promptregistry-mongo-server:${TAG:-latest}
container_name: promptregistry-mongo-server
ports:
- "6015:6012"
- "6018:6018"
ipc: host
environment:
http_proxy: ${http_proxy}
4 changes: 2 additions & 2 deletions ProductivitySuite/docker_compose/intel/cpu/xeon/set_env.sh
Original file line number Diff line number Diff line change
@@ -39,8 +39,8 @@ export CHAT_HISTORY_CREATE_ENDPOINT="http://${host_ip}:6012/v1/chathistory/creat
export CHAT_HISTORY_CREATE_ENDPOINT="http://${host_ip}:6012/v1/chathistory/create"
export CHAT_HISTORY_DELETE_ENDPOINT="http://${host_ip}:6012/v1/chathistory/delete"
export CHAT_HISTORY_GET_ENDPOINT="http://${host_ip}:6012/v1/chathistory/get"
export PROMPT_SERVICE_GET_ENDPOINT="http://${host_ip}:6015/v1/prompt/get"
export PROMPT_SERVICE_CREATE_ENDPOINT="http://${host_ip}:6015/v1/prompt/create"
export PROMPT_SERVICE_GET_ENDPOINT="http://${host_ip}:6018/v1/prompt/get"
export PROMPT_SERVICE_CREATE_ENDPOINT="http://${host_ip}:6018/v1/prompt/create"
export KEYCLOAK_SERVICE_ENDPOINT="http://${host_ip}:8080"
export LLM_SERVICE_HOST_PORT_FAQGEN=9002
export LLM_SERVICE_HOST_PORT_CODEGEN=9001
Original file line number Diff line number Diff line change
@@ -28,8 +28,8 @@ metadata:
spec:
type: ClusterIP
ports:
- port: 6012
targetPort: 6012
- port: 6018
targetPort: 6018
protocol: TCP
name: prompt-registry
selector:
@@ -69,7 +69,7 @@ spec:
imagePullPolicy: IfNotPresent
ports:
- name: prompt-registry
containerPort: 6012
containerPort: 6018
protocol: TCP
resources: null
---
6 changes: 3 additions & 3 deletions ProductivitySuite/tests/test_compose_on_xeon.sh
Original file line number Diff line number Diff line change
@@ -64,8 +64,8 @@ function start_services() {
export CHAT_HISTORY_CREATE_ENDPOINT="http://${ip_address}:6012/v1/chathistory/create"
export CHAT_HISTORY_DELETE_ENDPOINT="http://${ip_address}:6012/v1/chathistory/delete"
export CHAT_HISTORY_GET_ENDPOINT="http://${ip_address}:6012/v1/chathistory/get"
export PROMPT_SERVICE_GET_ENDPOINT="http://${ip_address}:6015/v1/prompt/get"
export PROMPT_SERVICE_CREATE_ENDPOINT="http://${ip_address}:6015/v1/prompt/create"
export PROMPT_SERVICE_GET_ENDPOINT="http://${ip_address}:6018/v1/prompt/get"
export PROMPT_SERVICE_CREATE_ENDPOINT="http://${ip_address}:6018/v1/prompt/create"
export KEYCLOAK_SERVICE_ENDPOINT="http://${ip_address}:8080"
export MONGO_HOST=${ip_address}
export MONGO_PORT=27017
@@ -275,7 +275,7 @@ function validate_microservices() {
fi

result=$(curl -X 'POST' \
http://$ip_address:6015/v1/prompt/create \
http://$ip_address:6018/v1/prompt/create \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{