Vote count:
0
I would like to get data from multiple remove web services without compromising my own REST service/website. When data is downloaded from those remote web services there is also images being downloaded, things being filtered, etc... Getting a better instance might get too expensive in the beginning, so i'm using a t1.micro.
I was running it in a dedicated server, so I was able to run it with cronjobs, and the heavy load didn't impact my website, but when i moved to amazon, each time I updated my data, my CPU use gone to 100%, it started creating new instances and then removing them. That's not cool, because each time a instance is started, amazon charge us an entire hour, so if it starts and closes after 5 minutes, and does that 5 times each hour, ill have to pay 5 hours of use, and i would had use 25 minutes.
Someone told me i could get those heavy cronjobs and move them to a separate instance, but that would mean to have a copy of my project there, so each time I run a git aws.push, i would have to do that for both instances (I'm not even sure i can do that and keep them in sync).
I was wondering about creating a rest service to get input from that "cronjobs" and then insert it db, but i'm not sure if there will be any advantage doing this, or maybe it would be a lot better to just simply run the cronjob in the same instance.
Aucun commentaire:
Enregistrer un commentaire