- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我从example获得的kubernetes上部署了3个灯塔 pods 和3个履带 pods 。
现在集群看起来像这样:
akka.tcp://webcrawler@crawler-1.crawler:5213 | [crawler] | up |
akka.tcp://webcrawler@crawler-2.crawler:5213 | [crawler] | up |
akka.tcp://webcrawler@lighthouse-0.lighthouse:4053 | [lighthouse] | up |
akka.tcp://webcrawler@lighthouse-1.lighthouse:4053 | [lighthouse] | up |
akka.tcp://webcrawler@lighthouse-2.lighthouse:4053 | [lighthouse] | up |
[WARNING][05/26/2020 10:07:24][Thread 0011][[akka://webcrawler/system/endpointManager/reliableEndpointWriter-akka.tcp%3A%2F%2Fwebcrawler%40lighthouse-1.lighthouse%3A4053-940/endpointWriter#501112873]] AssociationError [akka.tcp://webcrawler@crawler-0.crawler:5213] -> akka.tcp://webcrawler@lighthouse-1.lighthouse:4053: Error [Association failed with akka.tcp://webcrawler@lighthouse-1.lighthouse:4053] []
[WARNING][05/26/2020 10:07:24][Thread 0009][[akka://webcrawler/system/endpointManager/reliableEndpointWriter-akka.tcp%3A%2F%2Fwebcrawler%40lighthouse-2.lighthouse%3A4053-941/endpointWriter#592338082]] AssociationError [akka.tcp://webcrawler@crawler-0.crawler:5213] -> akka.tcp://webcrawler@lighthouse-2.lighthouse:4053: Error [Association failed with akka.tcp://webcrawler@lighthouse-2.lighthouse:4053] []
[WARNING][05/26/2020 10:07:24][Thread 0008][remoting] Tried to associate with unreachable remote address [akka.tcp://webcrawler@lighthouse-1.lighthouse:4053]. Address is now gated for 5000 ms, all messages to this address will be delivered to dead letters. Reason: [Association failed with akka.tcp://webcrawler@lighthouse-1.lighthouse:4053] Caused by: [System.AggregateException: One or more errors occurred. (No such device or address) ---> System.Net.Internals.SocketExceptionFactory+ExtendedSocketException: No such device or address
at System.Net.Dns.InternalGetHostByName(String hostName)
at System.Net.Dns.ResolveCallback(Object context)
--- End of stack trace from previous location where exception was thrown ---
at System.Net.Dns.HostResolutionEndHelper(IAsyncResult asyncResult)
at System.Net.Dns.EndGetHostEntry(IAsyncResult asyncResult)
at System.Net.Dns.<>c.b__27_1(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
at Akka.Remote.Transport.DotNetty.DotNettyTransport.ResolveNameAsync(DnsEndPoint address, AddressFamily addressFamily)
at Akka.Remote.Transport.DotNetty.DotNettyTransport.DnsToIPEndpoint(DnsEndPoint dns)
at Akka.Remote.Transport.DotNetty.TcpTransport.MapEndpointAsync(EndPoint socketAddress)
at Akka.Remote.Transport.DotNetty.TcpTransport.AssociateInternal(Address remoteAddress)
at Akka.Remote.Transport.DotNetty.DotNettyTransport.Associate(Address remoteAddress)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at Akka.Remote.Transport.ProtocolStateActor.<>c.b__11_54(Task`1 result)
at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
---> (Inner Exception #0) System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 6): No such device or address
at System.Net.Dns.InternalGetHostByName(String hostName)
at System.Net.Dns.ResolveCallback(Object context)
--- End of stack trace from previous location where exception was thrown ---
at System.Net.Dns.HostResolutionEndHelper(IAsyncResult asyncResult)
at System.Net.Dns.EndGetHostEntry(IAsyncResult asyncResult)
at System.Net.Dns.<>c.b__27_1(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
at Akka.Remote.Transport.DotNetty.DotNettyTransport.ResolveNameAsync(DnsEndPoint address, AddressFamily addressFamily)
at Akka.Remote.Transport.DotNetty.DotNettyTransport.DnsToIPEndpoint(DnsEndPoint dns)
at Akka.Remote.Transport.DotNetty.TcpTransport.MapEndpointAsync(EndPoint socketAddress)
at Akka.Remote.Transport.DotNetty.TcpTransport.AssociateInternal(Address remoteAddress)
at Akka.Remote.Transport.DotNetty.DotNettyTransport.Associate(Address remoteAddress)<---
]
apiVersion: v1
kind: Service
metadata:
name: crawler
labels:
app: crawler
spec:
clusterIP: None
ports:
- port: 5213
selector:
app: crawler
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: crawler
labels:
app: crawler
spec:
serviceName: crawler
replicas: 3
selector:
matchLabels:
app: crawler
template:
metadata:
labels:
app: crawler
spec:
terminationGracePeriodSeconds: 35
containers:
- name: crawler
image: myregistry.ru:443/crawler:3
lifecycle:
preStop:
exec:
command: ["/bin/sh", "-c", "pbm 127.0.0.1:9110 cluster leave"]
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: CLUSTER_IP
value: "$(POD_NAME).crawler"
- name: CLUSTER_SEEDS
value: akka.tcp://webcrawler@lighthouse-0.lighthouse:4053,akka.tcp://webcrawler@lighthouse-1.lighthouse:4053,akka.tcp://webcrawler@lighthouse-2.lighthouse:4053
livenessProbe:
tcpSocket:
port: 5213
ports:
- containerPort: 5213
protocol: TCP
apiVersion: v1
kind: Service
metadata:
name: lighthouse
labels:
app: lighthouse
spec:
clusterIP: None
ports:
- port: 4053
selector:
app: lighthouse
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: lighthouse
labels:
app: lighthouse
spec:
serviceName: lighthouse
replicas: 3
selector:
matchLabels:
app: lighthouse
template:
metadata:
labels:
app: lighthouse
spec:
terminationGracePeriodSeconds: 35
containers:
- name: lighthouse
image: myregistry.ru:443/lighthouse:1
lifecycle:
preStop:
exec:
command: ["/bin/sh", "-c", "pbm 127.0.0.1:9110 cluster leave"]
env:
- name: ACTORSYSTEM
value: webcrawler
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: CLUSTER_IP
value: "$(POD_NAME).lighthouse"
- name: CLUSTER_SEEDS
value: akka.tcp://webcrawler@lighthouse-0.lighthouse:4053,akka.tcp://webcrawler@lighthouse-1.lighthouse:4053,akka.tcp://webcrawler@lighthouse-2.lighthouse:4053
livenessProbe:
tcpSocket:
port: 4053
ports:
- containerPort: 4053
protocol: TCP
最佳答案
好。我设法解决了。 kuber节点之一无法解析DNS名称。只需重新启动节点即可解决此问题。
关于kubernetes - 如何修复 “Tried to associate with unreachable remote address [akka.tcp://actorsystem@address:port]”错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62020509/
我有一个问题,多次执行 ActorSystem system = ActorSystem.create("System"); 是否会提高生产力,或者我必须执行一次并使用一个引用? 最佳答案 您应该仅创
我们使用的是 Akka 2.0 RC1,在创建 ActorSystem 时出现异常,消息为:akka.actor.LocalActorRefProvider,堆栈跟踪如下: java.net.URLC
我需要一个 ActorSystem这不会记录任何内容。用spray尝试HTTP的东西,我太笨了,忍不住复制粘贴他们的示例代码here .正如你所看到的,他们正在使用 ActorSystem ,其默认配
我需要将不同类型的消息发布到事件流,而那些 消息应该有不同的优先级,例如,如果 10 个类型的消息 A 已经发布了,毕竟发布了一条类型 B 的消息,并且 B 的优先级高于 A 的优先级 - 消息 B
Akka 2.x 需要许多命令来引用 ActorSystem。因此,要创建 Actor MyActor 的实例,您可能会说: val system = ActorSystem() val myActo
关闭。此题需要details or clarity 。目前不接受答案。 想要改进这个问题吗?通过 editing this post 添加详细信息并澄清问题. 已关闭 9 年前。 Improve th
我将 Spray 用于 REST 端点。如何访问 trait 中现有的 ActorSystem? 我不想在我的 trait 中创建一个新的 ActorSystem(如果可能的话),而是重用我现有的 A
我正在尝试使用测试套件对我的 Java Akka actor 进行单元测试 public class AggregationActor extends UntypedActor { final
是否可以向 Actor 系统中的所有 Actor 发送消息?我一直在看Broadcast router例如,但这太边缘了,我无法理解我如何动态地向路由器添加 Actor 。 我们正在为 akka 使用
我有一个主程序,它创建一个 ActorSystem,一个 Actor 并向 Actor 发送一些消息。处理消息后,我发送 PoisonPill 来杀死 Actor。然后我关闭了 Actor 系统。 在
在 Akka (scala) 中是否可以获取对现有 ActorSystem 的引用? 我正在与 DB 的另一个 Actor 一起开发 Spray 应用程序。我还扩展了指令以让每个路径都有一个对象。这些
我正在开发一项使用 Akka Persistence 进行事件溯源的服务。到目前为止,我们已经成功地将事件存储在 Cassandra 日志中。现在我们想利用 Akka Persistence Quer
我正在尝试删除 Play 2.3.x 应用程序中的一些硬编码依赖项,并使用 Guice 来注入(inject)这些依赖项。其中之一是 Akka ActorSystem,我为此创建了一个像这样的提供程序
根据documentation对于 Play 2.6: The deprecated static methods play.libs.Akka.system and play.api.libs.co
我在 Java 8 中使用 Akka 2.5.6,我想知道完成 ActorSystem 的正确方法,我的代码的部分功能是处理一些 XML 文件并验证它们,为了实现这一点,我创建了 3 个 actor:
我有一个代码,我在其中从 AkkaSystem 创建一个 Actor。 return system.actorOf(Props.apply(new Creator() .... 里面我叫的童星 con
intellij 在子类指定更具体的返回类型时存在问题。 Akka 的 Http.get(ActorSystem) 方法就是这种情况。这个问题已报告给 JB,但他们尚未回复。 SCL-12302 最佳
我目前正在烘烤我的第一个蛋糕图案,所以请多多包涵。 我拿了我的工作单体应用程序,并将其切割成功能层。剪切看起来很干净,但导致两个层依赖于隐式 ActorSystem。 我试图像这样解决这种依赖关系:
我正在将我的项目升级到 Play 2.5。在之前的版本中,我使用以下代码通过 Akka 来调度任务: private ActorSystem actorSystem = Play.current().
我正在为 C# 桌面应用程序(不是服务器,而是桌面 GUI 应用程序)编写插件。为了使我们的线程问题更简单,我正在研究是否可以在这些插件中使用 AKKA.NET。这些插件基本上彼此独立。因此,从架构
我是一名优秀的程序员,十分优秀!