问题描述
我有一个使用硒网络驱动程序的应用程序。
I have an application that uses Selenium web-driver.
我想使它成为一个Web应用程序,并考虑以下的云计算服务:
I would like to make it a web application, and considering the following cloud-computing services:
- 在谷歌的App Engine(GAE)
- 在谷歌计算引擎(GCE)
- 在亚马逊弹性计算(EC2)
选项1:
GAE将是我的第一选择,因为它是免费的开始。
GAE would be my first choice, because it's free to begin with.
不过,我不敢肯定,我可以在其上运行硒网络驱动程序(即,打开远程浏览器)。
However, I am not so sure that I can run Selenium web-driver (i.e., open a remote browser) on it.
根据 http://stackoverflow.com/a/19940165/1382251 我不能,因为它不支持创建线程,不支持原生code(和浏览器两者都需要)。
According to http://stackoverflow.com/a/19940165/1382251 I can't, because it does not support creating threads and it does not support native code (and browsers need both).
这个答案没有任何向上票的,所以我想断言:
This answer doesn't have any up-votes though, so I would like to assert that:
- 关于线程问题 - 它是不可能打开一个进程(火狐),并从另一个进程访问它(我的应用程序),在本地运行的时候,因为我做的
- 关于本机code问题 - 如果我使用,而不是一个JAR文件硒网络驱动程序源$ C $ C,这不是要解决这个问题
选项2和3:
- 在present,我不需要任何额外的计算能力和存储空间。我的应用程序并不需要或者在磁盘上存储任何东西。因此,在优化价格每小时只,哪一个更好的条件? - GCE或EC2
- 在GAE,我知道我的服务器实例是活着接收HTTP请求,只有当,只为在有限的时间段之后。所以我猜测,GAE包装它具有某种普遍服务的监听请求,将它们传递到应用程序本身之前。难道价格每小时在GCE和EC2指到我的服务器的生存时间,抑或是固定的,每小时的那一刻起我把它上传?
推荐答案
不能回答你所有的问题,因为我不熟悉谷歌的云产品,但据EC2,你每小时付了整整一个小时(或一小时的一部分),你离开运行的实例 - 无论它是不是做任何事情 - 觉得EC2作为服务器坐在桌子旁边给你;每次你打开电源的时候,你已经开始计费按小时,直到你关闭其电源。取决于你如何关闭其电源,你也可以支付保管费对于非运行的服务器(例如,如果你这样做将其关闭,你将支付保管费,如果你把它扔了的时候相当于相当于你关闭其电源,你就不会需要支付的仓储费 - 不是一个完美的比喻,但足够接近
Can't answer all your questions, as I am not familiar with Google's cloud offerings, but as far as EC2, you pay by the full hour for every hour (or part of an hour) that you leave the instance running - whether or not it is doing anything - think of ec2 as a server sitting on the desk next to you; every time you power it on, you are getting billed by the hour until you power it off. Depending on how you power it off, you may also pay storage fees for the non-running server (i.e if you do the equivalent of 'turning it off', you will pay storage fees, if you do the equivalent of throwing it away when you power it off, you wouldn't need to pay those storage fees - not a perfect analogy, but close enough.
此外,还要注意'储存'的成本非运行的服务器只有几分钱,所以应该是一个不是问题的问题,在大多数情况下 - 大部分的EC2费用将涉及到每小时收费,运行成本,这范围可以从低于每小时一分钱几美元每小时一个非常强大的机器。
Also keep in mind the cost of 'storing' a non-running server is only pennies, so should be a non-issue in most cases - most of your ec2 costs will be related to the running cost per hour charges, which can range from less than a penny per hour to several dollars per hour for a very powerful machine.
只要有可能,你应该购买预留实例,这为您节省每小时一个巨大的量,如果你能够全心投入1-3年的期限。
Whenever possible, you should purchase reserved instances which save you a tremendous amount per hour, if you are able to commit yourself to a 1-3 year term.
这篇关于选择为使用硒网络驱动器的Web应用程序云计算服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!