Closed pierre-josselin closed 1 month ago
Here is the result of oc get pods
if needed:
default-rabbitmq-0 1/1 Running 0 34m
iotagent-json-5bdcd4848b-ttl7q 1/1 Running 0 29m
mongodb-8644774567-lwlkg 2/2 Running 0 35m
postgres-smartvillage-0 1/1 Running 0 32m
python-0 2/2 Running 0 9h
scorpiobroker-7b8b7896b7-2q7jp 1/1 Running 0 30m
solr-0 1/1 Running 0 27m
zookeeper-0 1/1 Running 0 28m
Hi @pierre-josselin , the default sandbox configuration will only deploy 1 replica of the smartvillage-worker
Deployment, and 0 replicas of the smartvillage-web
Deployment. The worker can handle the web API as well as the background worker verticle and is best to configure only 1 replica of the worker. You can increase the web Deployment replicas to test the Zookeeper clustering of requests.
Do you have any smartvillage-worker
pods?
Hi @computate, Thank you for your reply. I'm not very familiar with this kind of environment. What exactly should I do to fix this problem?
Given the results of oc get pods
, there doesn't seem to be any smartvillage-worker
pod:
default-rabbitmq-0 1/1 Running 0 5m16s
iotagent-json-5bdcd4848b-fxjng 1/1 Running 0 2m59s
mongodb-8644774567-b59s4 2/2 Running 0 5m55s
postgres-smartvillage-0 1/1 Running 0 4m27s
python-0 2/2 Running 0 7h40m
scorpiobroker-7b8b7896b7-cd2c7 1/1 Running 0 3m36s
solr-0 1/1 Running 0 96s
zookeeper-0 1/1 Running 0 2m12s
@pierre-josselin you might check how the smartvillage-worker Deployment is doing, and if you have any Project Events that may be blocking a container starting up. You may need to re-run all commands the 01 and 02 notebooks in this course in the OpenShift Developer Sandbox if you want to restart all the services.
I run into the same problem. The deployment has a request.cpu=200, already requested=2910 and the limit is 3000. So changing the request.cpu=90 pod starts...
Thanks for pointing out these bugs with resources.requests ResourceQuotas. It's possible the Dev Sandbox team has made the resources.requests ResourceQuotas smaller since I first created the course. I have updated the resources.requests.cpu: 100m
in most instances to fix this problem. You'll want to pull the latest from the smartvillage-operator
and smartabyar-smartvillage-sandbox-course
in the AI Workbench to get the latest changes.
cd ~/smartabyar-smartvillage-sandbox-course/
git reset --hard HEAD
git pull
cd ~/smartvillage-operator
git pull
Thanks, I don't have a chance to test this yet, but I will let you know if there are any problems.
Hi,
I'm currently following the course 02-deploy-microservices.ipynb, but I encounter a problem in step Deploy the SmartaByarSmartVillage:
There doesn't seem to be errors, but the following command:
Returns No resources found in pierre-josselin-dev namespace.
Did I missed something?