第二个例子没有开始/不工作

时间:2013-03-24 22:34:01

标签: azure azure-web-roles instances

我有一个云服务,如果我将我的Web角色定义为在ServiceConfiguration文件中有2个内容,当我部署它时,第一个实例启动正常并运行,但第二个实例保持冻结状态。

然而,如果我只使用一个实例部署它,然后我在Azure门户上手动扩展它,第二个实例启动正常并运行但似乎不起作用,因为所有流量都通过第一个实例。

有什么想法吗?

好的,经过2个半小时后,第二个实例开始了。但现在,该服务无效。如果我使用WCF测试客户端测试它,当我尝试调用任何方法时会抛出错误。

   Error:
   Failed to invoke the service. Possible causes: The service is offline or inaccessible; the client-side configuration does not match the proxy; the existing proxy is invalid. Refer to the stack trace for more detail. You can try to recover by starting a new proxy, restoring to default configuration, or refreshing the service

   Erro details
   The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.

   Server stack trace: 
      at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
      at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
      at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
      at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
      at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

   Exception rethrown at [0]: 
      at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
      at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
      at TeapotSyncService.GetTeapotState(Int32 session)
      at TeapotSyncServiceClient.GetTeapotState(Int32 session)

重点是Silverlight客户端向我的云托管WCF服务(Web角色)发送请求,该服务读取/写入Azure SQL数据库,并响应客户端。我想扩展它以便能够每秒处理更多请求但我不知道如何做(如果实现工作者角色,只是增加实例数等) 顺便说一句,我刚刚意识到服务只读/写数据库的一行。因此,当有多个请求时,这是一个很大的问题,因为操作不能同时进行,因为它们指向同一行,对吧?

0 个答案:

没有答案