-
Notifications
You must be signed in to change notification settings - Fork 32
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
render sevice connection error #139
Comments
Hi,
Architecturally, there are three key components in the system: a client (python code using the render-python library in your case), render web services, and a render database. The render web services and database can be deployed in different ways which can make things a little confusing. For large scale production use (as is done at Janelia and at the Allen Institute), a centralized MongoDB database is deployed separately from the web services on dedicated hardware. This allows the web services instances to be scaled up and/or modified while still sharing the same core data in the central database. It also allows the database to be deployed on hardware specifically sized/setup for heavy concurrent usage. For small scale development and/or exploration, you can deploy the web services and database as separate containers within a swarm using docker compose as Forrest suggested here. There are also other small scale deployment options documented here. One thing to keep in mind when using docker based database deployments is that the containers are by default ephemeral, so when you shut down the the database container its data will be lost. Let me know how things go ... Best, |
Dear Eric, Thank you very much for these advices. Now the problem has been solved. Best regards, ZWQ |
1."docker pull fcollman\render-python", it seems like a local docker image. could you give a pubilic image address?
2. when i follow the guide in "https://render-python.readthedocs.io/en/latest/guide/index.html#getting-started", it runs successfully until i run "renderapi.stack.create_stack(stack,render=render)". it meets an error like this: " raise RenderError(
renderapi.errors.RenderError: cannot post {'stackResolutionX': 1.0, 'stackResolutionY': 1.0, 'stackResolutionZ': 1.0, 'createTimestamp': '2023-40-15T11:40:26.00Z'} to http://192.168.50.10:8080/render-ws/v1/owner/myowner/project/myproject/stack/mystack with params None returned status_code 500 with message Timed out after 30000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused (Connection refused)}}]"
how can i connect to it?
The text was updated successfully, but these errors were encountered: