简体   繁体   English

专用的MySQL服务器可与App Engine一起使用

[英]Dedicated MySql server works with app engine

I know AppEngine application runs in a restricted " sandbox " environment so that it can access limited resources like 我知道AppEngine应用程序在受限的“ 沙箱 ”环境中运行,因此它可以访问有限的资源,例如

request execution time limit 60 sec (which is for speed optimization purpose) 请求执行时间限制为60秒(用于优化速度)
read from external file but can not write ,etc 从外部文件读取但无法写入等

AppEngine provides a good high replication Datastore ,which is so good to store data but it is hard to mange number of quires to perform simple operation like insert, update, delete and update as it uses NoSql(basically jpa and jdo). AppEngine提供了一个很好的高复制数据存储区,它很好地存储数据,但是由于它使用NoSql(基本上是jpa和jdo),因此很难管理许多执行诸如插入,更新,删除和更新之类的简单操作的需​​求。

Because of this we decide to go with Mysql,I know google itself provide cloud sql instance which uses Mysql5.6 ,I searched alot on SO and in some post I found that it is possible with some restriction while some post says it is not possible because of limitation of sandbox environment,so it is confusing . 因此,我们决定使用Mysql,我知道google本身提供了使用Mysql5.6的云sql实例,我在SO上进行了大量搜索,在某些帖子中我发现有一定的限制是可能的,而有些帖子却说不可能由于沙箱环境的限制,所以令人困惑。

During development one can use local mysql instance as detail provide on this link ,but we want to use External mysql instance which is hosted on ourserver 在开发过程中,可以使用本地mysql实例作为此链接的详细信息,但是我们要使用托管在我们服务器上的外部mysql实例。

It possible use Dedicated (External/Local) MySql server with app engine(for production not for development)? 是否可以将专用(外部/本地)MySql服务器与应用程序引擎一起使用(用于生产而不用于开发)?

thanks in advance!!!!!! 提前致谢!!!!!!

Google App Engine has a socket API that allows outbound sockets for paid apps, so it is possible to use an external MySQL service. Google App Engine具有一个套接字API,该套接字API允许付费应用程序使用出站套接字,因此可以使用外部MySQL服务。 To do this, follow the instructions at the link you provide, but always use the com.mysql.jdbc.Driver JDBC driver, and a URL like jdbc:mysql://your_external_mysql_server:3306/database_name?user=your_user&password=1234 . 为此,请按照提供的链接上的说明进行操作,但始终使用com.mysql.jdbc.Driver JDBC驱动程序以及类似jdbc:mysql://your_external_mysql_server:3306/database_name?user=your_user&password=1234的URL。 Ensure your external MySQL server has port 3306 open. 确保您的外部MySQL服务器已打开端口3306。

As mentioned by others this may not be advisable as it will have substantially worse performance that the Datastore or Google Cloud SQL. 正如其他人所提到的那样,这可能不明智,因为它的性能将比数据存储库或Google Cloud SQL差很多。 You will also lose the reliability and scaling that Google App Engine brings. 您还将失去Google App Engine带来的可靠性和扩展性。 Moreover hosting a dedicated MySQL instance and paying for bandwidth to it is likely to end up more expensive than simply using Datastore or Cloud SQL. 而且,托管一个专用的MySQL实例并为其支付带宽可能会比仅使用Datastore或Cloud SQL花费更多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 端点:本地开发服务器返回500,但App Engine正常运行 - Endpoints: Local development server returns 500 but App Engine works fine 适用于开发服务器,但不适用于Google App Engine(会话) - Works on development server but it doesn't on Google App Engine (Sessions) App Engine服务器上的ClassCastException - ClassCastException on App Engine Server 谷歌应用引擎服务器报告错误,但在本地服务器上代码工作正常 - google app engine server reports error but on local server the code works fine 将Google App Engine与Java结合使用可给出“在此服务器上未找到URL”,但可与localhost一起使用 - Using google app engine with java gives “url was not found on this server” but works with localhost 如何创建可在Google App Engine和本地tomcat服务器上运行的应用程序? - How to create a application that works both on Google App Engine and Local tomcat server? 虚拟专用服务器问题 - Virtual Dedicated Server Question 专用服务器上的elasticsearch RemoteTransportException - elasticsearch RemoteTransportException on dedicated server Servlet映射在本地工作,但不能在应用程序引擎的Web服务器上运行 - Servlet mapping works locally but not on webserver in app engine 将应用程序引擎JDO应用程序移植到MySql后端 - Porting app engine JDO app to MySql backend
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM