Fabric消息太大 [英] Fabric Message is too large

查看:88
本文介绍了Fabric消息太大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将5MB〜数据从服务传递给actor,但出现错误:

I'm trying to pass 5MB~ data from a service to an actor, and I'm getting the error:

织物消息太大

Fabric Message is too large

如何增加微服务之间可以传输的最大大小?

How can I increase the maximum size that can be transferred between micro-services?

我查看了以下页面以查看我的选项.

I looked at the following page to see my options.

我尝试设置:

<Section Name="ServiceReplicatorConfig">
    ...
    <Parameter Name="MaxReplicationMessageSize" Value="1073741824" />
</Section>

请帮助.

推荐答案

有人在GitHub上为我提供了以下帮助:

Somebody helped me on GitHub with the following:

为了设置远程传输的最大大小,可以使用以下属性并将其放在actor接口程序集上,或者在ServiceProxyFactory和ServiceRemotingListener创建中配置最大消息大小.

In order to set maximum size for the remoting transport, you can use the following attribute and place it on your actor interface assembly or configure the maximum message size in the ServiceProxyFactory and ServiceRemotingListener creation.

[assembly: FabricTransportActorRemotingProvider(MaxMessageSize = 1073741824)]

https://msdn.microsoft.com/en-us/library/azure/microsoft.servicefabric.actors.remoting.fabrictransport.fabrictransportactorremotingproviderattribute.aspx

GitHub 中的讨论.

这篇关于Fabric消息太大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆