简体   繁体   English

杂种群集在Windows上并行运行

[英]Mongrel clusters are running parallel on windows

I have setup my rails application on windows With Mongrel application server and Apache Web server . 我已经在Windows上使用Mongrel应用程序服务器和Apache Web服务器设置了Rails应用程序。

I have defined the 10 cluster for mongrel to handle the request properly . 我为杂种定义了10个群集,以正确处理请求。 When I make any request that has heavy db operation or that require time to execute , then all my mongrel cluster are busy and displaying same log . 当我发出任何具有大量数据库操作或需要时间来执行的请求时,则我的所有杂种群集都处于繁忙状态并显示相同的日志。

Same mongrel cluster setting are working fine on Linux server . 相同的杂种群集设置在Linux服务器上可以正常工作。

Can you please get me out of this bottleneck . 你能帮我摆脱这个瓶颈吗?

Thanks in advance . 提前致谢 。

Was stuck into the log issue . 被卡在日志问题中。

So I have set different log file for each cluster and things are working fine . 因此,我为每个群集设置了不同的日志文件,并且一切正常。

It sounds like the native database access library is locking something or the database itself is configured in the such a way that only exclusive access to the relevant tables is allowed. 听起来本机数据库访问库正在锁定某些内容,或者数据库本身是以仅允许对相关表进行独占访问的方式配置的。 (Most likely the former by the sound of it, assuming it's the exact same database that is being accessed from the Linux-served version of your app too.) (听起来很可能是前者,假设它也是从您的Linux服务版本访问的数据库完全相同的数据库。)

As such, the answer to your question is probably rooted in the particular database provider you are using. 因此,您问题的答案可能源于您正在使用的特定数据库提供程序。 Which is it... sqlite, Postgres, MySQL, MS SQL Server? 是什么... sqlite,Postgres,MySQL,MS SQL Server?

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM