简体   繁体   English

Mule 4 中共享负载均衡器 URL 和外部 IP 地址 URL 之间的区别

[英]Difference between Shared Load balancer URL and External IP address URL in Mule 4

My apologies in case this is a basic/simple question :-).如果这是一个基本/简单的问题,我深表歉意:-)。 I am still trying to understand the Mule Architecture.我仍在尝试了解 Mule 架构。

Use case:用例:

I have an mule application deployed to cloudhub with 2 workers.我有一个 mule 应用程序部署到 cloudhub,有 2 个工作人员。 This API is called from third party using the shared load balancer URL (ie, ..cloudhub.io ).此 API 是使用共享负载均衡器 URL(即..cloudhub.io )从第三方调用的。 However, some transactions are taking more than 5mins because of which at the third party layer they are getting 504 error response, though the transaction is successfully completed at mule layer.然而,一些事务需要超过 5 分钟,因为在第三方层他们得到 504 错误响应,尽管事务在 mule 层成功完成。

I read in one of the mule blog that shared load balancer has timeout of 5mins, and suggested to use External IP address (ie, mule-worker-..cloudhub.io: ).我在其中一篇 mule 博客中读到共享负载均衡器的超时时间为 5 分钟,并建议使用外部 IP 地址(即mule-worker-..cloudhub.io: )。

My Question:我的问题:

  1. Is there a way to increase the shared load balancer URL response timeout?有没有办法增加共享负载均衡器 URL 响应超时?
  2. If I am using External IP address, will it have any impact over the shared balancer URL?如果我使用外部 IP 地址,它会对共享平衡器 URL 产生任何影响吗? Any pros and cons?有什么优点和缺点吗? Like in case the API is deployed on 2 workers, will using External IP address URL be able to distribute the load between workers?就像在 2 个工作人员上部署 API 一样,使用外部 IP 地址 URL 是否能够在工作人员之间分配负载?

Thanks in advance.提前致谢。

  1. There is no way to increase the response timeout of the shared load balancer.没有办法增加共享负载均衡器的响应超时。 It is fixed.它是固定的。

  2. When using the external DNS name (or external IP) for your application you are connecting directly to the application bypassing completely the load balancer.为您的应用程序使用外部 DNS 名称(或外部 IP)时,您将完全绕过负载均衡器直接连接到应用程序。 You lose all features of a load balancer or related to it, like load balancing and zero downtime deployments.您将失去负载平衡器的所有功能或与之相关的功能,例如负载平衡和零停机部署。

When deploying to multiple workers the DNS name will return all IPs.部署到多个工作人员时,DNS 名称将返回所有 IP。 Your client might be able to use the set of IPs in a round robin fashion.您的客户端可能能够以循环方式使用 IP 集。 While it is not the same as load balancing, it is a kind of a very light load distribution strategy.虽然它与负载均衡不同,但它是一种非常轻的负载分配策略。 Note that your client DNS resolution should avoid caching DNS resolution.请注意,您的客户端 DNS 解析应避免缓存 DNS 解析。

Note that if you have a subscription for a Dedicated Load Balancer you can set a custom response timeout for it.请注意,如果您订阅了专用负载均衡器,则可以为其设置自定义响应超时

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

相关问题 从骡子流中调用外部 rest URL 时出现 NameResolvingRequestBuilder$RotateIpListFactory 错误 - NameResolvingRequestBuilder$RotateIpListFactory error when calling external rest URL from a mule flow Mule ActiveMQ 连接器不会重新连接到 Amazon MQ 负载均衡器 - Mule ActiveMQ Connector does not reconnect to Amazon MQ Load Balancer Mule 4 中的 VM 消费和 VM 侦听器之间的区别? - Difference between a VM Consume and VM Listener in Mule 4? 我正在尝试通过AnypointStudio在Mule中使用带有HTTPS URL的SOAP服务 - I am trying to consume a SOAP service with an HTTPS url in Mule with AnypointStudio 我们如何从 Mule 4 应用程序重定向到跨域 URL? - How do we redirect to a cross domain URL from a Mule 4 application? Microsoft SQL Server 连接和 Mule 4.3 的 DB 连接器中提供的通用 DB 连接有什么区别? - What is the difference between Microsoft SQL Server Connection and Generic DB connection provided in DB connector from Mule 4.3? Mule 4:转换嵌套的 JSON 并加载到数据库中(展平) - Mule 4 : Convert nested JSON and load into database (flatten) 在骡子中替换名称和标题之间的所有内容 - Replace Everything between Name and Title In Mule Object Store 不共享 b/w mule 运行时 - Object Store Not getting shared b/w the mule runtimes 使用 Mule SDK 调用外部 API - Call external API using Mule SDK
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM