parse-server-example icon indicating copy to clipboard operation
parse-server-example copied to clipboard

High latency after migrating from Parse.com to AWS Elastic Beanstalk + mLab

Open sohagfan opened this issue 10 years ago • 0 comments

Q1. Has anyone been 100% successful in fully migrating from Parse.com to Elastic Beanstalk + mLab?

By that I mean functionally, as well as with as good or better performance of your app as when it was running on the hosted Parse platform?

We have done the complete migration, and while we are able to get all components of our app working, we have serious latency issues.

We have done several tests, trying out versions of the Parse server (currently using 2.2.11), versions of the Mongo DB driver (currently 2.1.18), optimizing indexes for queries on the mLab side with the help of mLab support folks, trying out different proxies (nginx, apache, none), and we are unable to match the performance of the hosted Parse.com.

We consistently see the following error in the nginx error.log: [error] 2684#0: *254 upstream prematurely closed connection while reading response header from upstream

Some time after we run our app, if we hit a query that hasn't been optimized, the above error is seen. When this error happens, our latency goes very high and the only recourse is to wait for some time or restart the environment, otherwise our app is unusable.

Q2. Has anyone run into a similar situation? We would be very interested in understanding how you overcame the problem.

Thanks in advance.

sohagfan avatar Jun 10 '16 00:06 sohagfan