Closed li-wu closed 4 years ago
setup_http
you mean the logic here? https://github.com/splunk/eventgen/blob/develop/splunk_eventgen/eventgen_api_server/eventgen_server_api.py#L536
@li-wu Yes. That is correct.
@arctan5x I walked through the function setup_http
and it seems the threading
is set to process
and no way to change it to thread
. Any thing missing?
@arctan5x could you help confirm my previous comment? Thanks.
What do you mean by that there is no way to change it to "thread"?
Seems like that there is no dynamic way to change threading mode while the server is running. Since users don't control how server starts (only able to control threading through args/evn vars), how are users using this change?
What do you mean by that there is no way to change it to "thread"?
I mean there is no logic to change the mode to thread mode in the function setup_http
.
Seems like that there is no dynamic way to change threading mode while the server is running. Since users don't control how server starts (only able to control threading through args/evn vars), how are users using this change?
If users like perf team are using the docker, that might be a problem since they are using /start REST endpoint to start the service. Any good suggestion?
It's ok for our perf team. Actually, we only need to make sure the eventgen server mode using multithread by default. I think we can change the entrypoint.sh
with --multithread
parameter on server mode when we want to upload a new image.
If perf team is going to change entrypoint.sh, I would say this PR would do its job. One thing I would note is that /setup changes threading to multiprocess. So please note that when you use.
Hi, we also have a logic in setup_http function to update threading option to process.