Hello Stack Overflow community,
I have been working with OpenShift 4 to deploy a multi-threaded application that relies on parallelism for better performance. In OpenShift, fractional CPU amounts can be allocated using millicores. In my case, I have a scenario where I can only allocate 500m (500 millicores) CPU for my microservice.
The microservice has a main thread and a method that uses the @Async
annotation to run asynchronously. Is there any way to guarantee true parallelism for these two threads, rather than just concurrency, when allocating 500m CPU?
Any guidance or suggestions on this topic would be much appreciated. Thank you!
I checked Dynatrace to understand the number of worker processes my application is using. I expected to see multiple worker processes running concurrently, but I only found one worker process in the graph when selecting "count".