Scheduling A Job on AWS EC2

前端 未结 7 728
眼角桃花
眼角桃花 2020-12-24 14:52

I have a website running on AWS EC2. I need to create a nightly job that generates a sitemap file and uploads the files to the various browsers. I\'m looking for a utility o

7条回答
  •  醉酒成梦
    2020-12-24 15:40

    If this task can be accomplished with one machine, i recommend booting up an instance programmatically using the fog gem written in ruby.

    After you start an instance, you can run a command via ssh. Once completed you can shutdown with fog as well.

    Amazon EMR is also a good solution if your task can be written in a map reduce manner. EMR will take care of starting/stopping instances. The elastic-mapreduce-ruby cli tool can help you automate it

提交回复
热议问题