Closed arlin closed 6 years ago
The bottleneck of the scaling service is the current Python-to-R interface that have been used to call datelife methods. It was not able to accept multiple connections at a time and was processing requests sequentially. The solution is to use a different R interface to access the datelife library.
I have replaced the old Python-to-R interface with a new one. The new interface will be able to handle multiple connections to datelife R library. As a result, the datelife service will now scale better.
From load testing results here:
https://docs.google.com/document/d/1mgal-qCKOlGGrHC0EsEve2KzxP_LCy_q2Y2_ytOeM6c/edit#heading=h.fzugdk5hu7q2
we believe that there is a bottleneck in scaling services at the level of the NMSU wrapper or the underlying R function calls.
Find out what is wrong, and fix things so that we can support 100 concurrent scaling threads.