service-discovery

What is the conceptual difference between Service Discovery tools and Load Balancers that check node health?

一个人想着一个人 提交于 2019-12-03 07:30:49
问题 Recently several service discovery tools have become popular/"mainstream", and I’m wondering under what primary use cases one should employ them instead of traditional load balancers. With LBs, you cluster a bunch of nodes behind the balancer, and then clients make requests to the balancer, who then (typically) round robins those requests to all the nodes in the cluster. With service discovery (Consul, ZK, etc.), you let a centralized “consensus” service determine what nodes for particular

Android NSD not discovering all services

荒凉一梦 提交于 2019-12-03 06:38:24
问题 I'm trying to run an application using Android Native Service Discovery but sometimes when I run the application, it doesn't discover all services from my network. I'm running the code from https://github.com/joeluchoa/nsd using four galaxy nexus and most of the times each of them discoveries different number of services at the same time. Basically I run a service with a ServerSocket: ServerSocket server = new ServerSocket(0); Log.i(TAG, "IP " + server.getInetAddress() + ", running on port "

Listener already in use (Service Discovery)

梦想的初衷 提交于 2019-12-03 05:19:45
I can't resolve one service while another is being resolved? If that's what the error means... What is the way to wait until it is resolved? @Override public void onServiceFound(NsdServiceInfo service) { Log.d(TAG, "Service found. " + service); if (service.getServiceType().equals(SERVICE_TYPE)) { if (service.getServiceName().contains(mServiceName)) { mNsdManager.resolveService(service, mResolveListener); } } } java.lang.IllegalArgumentException: listener already in use at android.net.nsd.NsdManager.resolveService(NsdManager.java:613) at com.example.miguel.broadcast.LocalService$2

What is the conceptual difference between Service Discovery tools and Load Balancers that check node health?

牧云@^-^@ 提交于 2019-12-02 21:04:43
Recently several service discovery tools have become popular/"mainstream", and I’m wondering under what primary use cases one should employ them instead of traditional load balancers. With LBs, you cluster a bunch of nodes behind the balancer, and then clients make requests to the balancer, who then (typically) round robins those requests to all the nodes in the cluster. With service discovery ( Consul , ZK , etc.), you let a centralized “consensus” service determine what nodes for particular service are healthy, and your app connects to the nodes that the service deems as being healthy. So

Android Bluetooth: Service Discovery Failed, connection to Desktop/Laptop

一个人想着一个人 提交于 2019-12-01 12:55:57
I have an Android app that I had working a few months ago which I could use to connect my Droid X2 to an ASUS Transformer tablet over Bluetooth. That connection worked fine. I just finished coding client/server pairs using PyBlueZ on a couple Ubuntu machines, and an analogous client/server pair using BlueCove on a Windows machine. I thought it would be a breeze to take these three working, tested systems and connect them. Unfortunately, I am currently unable to connect my Droid X2 to my other machines, nor can I connect my other machines to my Droid X2 (I no longer have the ASUS Transformer).

What is the different between putting a separate service discovery and integrate it into the cluster machine in Docker Swarm

风流意气都作罢 提交于 2019-12-01 12:31:32
I am having problem understanding the need of a separated service discovery server while we could register the slave node to the master node at the slave node start-up through whatever protocol. Hosting another service seem redundant to me. VonC Docker Swarm is there to create a cluster of hosts running Docker and schedule containers across the cluster. It does not include service discovery , which is provided by a backend service, such as etcd, consul or zookeeper. The first problem: service registration and discovery is an infrastructure concern, not an application concern. The second

Android Bluetooth: Service Discovery Failed, connection to Desktop/Laptop

依然范特西╮ 提交于 2019-12-01 11:54:27
问题 I have an Android app that I had working a few months ago which I could use to connect my Droid X2 to an ASUS Transformer tablet over Bluetooth. That connection worked fine. I just finished coding client/server pairs using PyBlueZ on a couple Ubuntu machines, and an analogous client/server pair using BlueCove on a Windows machine. I thought it would be a breeze to take these three working, tested systems and connect them. Unfortunately, I am currently unable to connect my Droid X2 to my other

Internal error using Network Service Discovery in Android

左心房为你撑大大i 提交于 2019-12-01 04:00:19
During the first implementation of the NSDManager using the examples and the tutorial on the developer page , the application successfully started the discovery and found the devices. However now it seems to be broken... When the program is started, after some initialization, the code enters the following method and successfully run: public void discoverServices() { Log.d(TAG, "Initializing discovery on NSD"); mNsdManager.discoverServices( SERVICE_TYPE, NsdManager.PROTOCOL_DNS_SD, mDiscoveryListener); } The log-message is received. After a good while (say approx 5 mins.) this is outputted from

Prometheus dns service discovery in docker swarm

て烟熏妆下的殇ゞ 提交于 2019-12-01 03:03:17
问题 I'm searching for some monitor & alert solutions for my services. I found following nice related works. Prometheus monitoring for docker swarm Monitoring a docker swarm cluster with Prometheus Both works use dns service discovery to monitor multiple replicas of services. I've tried to replay these work, but I found I can only get single backend container ip. # dig A node-exporter ; <<>> DiG 9.10.4-P8 <<>> A node-exporter ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY,

UPnP library for Java [closed]

蹲街弑〆低调 提交于 2019-11-30 12:58:49
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Is there a library for implementing service discovery and publishing via UPnP? (I am trying to find some alternatives to JmDNS that