You are not logged in.
Pages: 1
Hi,
First of all, I want to congratulate Synopse team, they are doing a great task! mORMot is one of the big things that changed my mind to not left Pascal. Thanks!
We have made an online (image-resizer & compression) HTTPServer application in Delphi Pascal that uses Synopse low level SynCRTSock.THttpServer. This application is running very well at Azure under AppService with 5 instances(machines quad core). Has replaced a slow .NET Core application based on kestrel running at 10 instances. Our service has more than 30 milions of request/day under a Microsoft ARR and Akamai CDN.
Some advice to improve/optimize SynCRTSock.THttpServer ? If can be improved more. Server constructor param ThreadPool is useful?
Last edited by turrican (2018-01-11 13:01:33)
Offline
So you are using the http.sys-based server?
The thread pool default parameter should be good enough for your purpose, since 32 is much higher than your server core count, and most of the time will be spent in the Windows kernel, in the http.sys communication process.
Offline
According to our observations in Hi-load systems (for http.sys-based server) we discover a degradation of performance if threadPoll > 24. But this depends of application and processor architecture. Xeon is MUCH faster compared to i7 for example. Also - bare metal is faster when virtual machine.
Offline
So you are using the http.sys-based server?
The thread pool default parameter should be good enough for your purpose, since 32 is much higher than your server core count, and most of the time will be spent in the Windows kernel, in the http.sys communication process.
No, we are using bare TCP THTTPServer because Azure AppServices applications can't use administrator called apis... But we have an IIS proxy (ARR) above. Our constructor is called with 256 value on threadpool parameter.
Last edited by turrican (2018-01-11 13:00:12)
Offline
You don't need to run the program with admin rights.
If you register the URI from command line with admin rights, just once (as a regular IIS URI), you can then run the service with normal rights.
Perhaps 256 may be slower than 32, in practice, if you have a proxy, and only 4 cores.
Only you could know which parameter is the best, by trying on real HW and SW.
Offline
You don't need to run the program with admin rights.
If you register the URI from command line with admin rights, just once (as a regular IIS URI), you can then run the service with normal rights.
Azure AppService is a self managed enviorment and can't setup an HTTPApi.sys server at all.
Perhaps 256 may be slower than 32, in practice, if you have a proxy, and only 4 cores.
Only you could know which parameter is the best, by trying on real HW and SW.
Yeah this is the best way to test it. We will put this line on server Constructor (System.CPUCount * 8 on threadpool size value).
Thanks for your advices.
Offline
Pages: 1