-
Notifications
You must be signed in to change notification settings - Fork 8
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
Convert worker-manager TCP server to an HTTP server for DX #2063
Conversation
0462c19
to
9f8e449
Compare
9f8e449
to
84cc7b2
Compare
@habdelra thoughts about whether and where to test this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this locally in the browser and I was able to see the stats.
So i think the way I would approach testing for this would be to create a new realm server test module for this. in that module I'd set a random DB name using controlling queue depth might be a little tricky for the test. perhaps that means actually you publish jobs to the queue first before you spin up the worker manager--that way you can be sure of how many jobs are in the queue. and after the worker manager spins up you should see the queue depth start to decrease. |
Also keep in mind that in production right now there are 2 worker managers. because there are 2 ECS tasks in the worker ECS service. How do you intend to expose the worker manager HTTP for each ECS worker task? For state originating from the DB it probably doesn't matter, since it will be the same--but for worker manager specific state, like number of running workers (and perhaps the PID of the workers) this may not necessarily be the same |
After discussion with @habdelra, I am going to update this branch to retain the TCP -> HTTP conversion but drop the queue depth. In a separate PR, I will add an endpoint to realm server to report on queue stats starting with queue depth. |
- In a separate PR, we will add an endpoint to realm server to report on queue stats starting with queue depth.
No description provided.