service-discovery

Intranet communication issue in ECS with Route53 in private subnet

佐手、 提交于 2019-12-11 19:09:52
问题 I have hosted our applications on ECS Cluster (EC2 Mode) in a private subnet. I am facing problem with inter-service communication. I have set task networking mode as bridge. Depending on Route53 private hosted zone for service discovery. The services are getting registered under Route53 with SRV record type. Using . for pointing to our hosted service. For example, I have hosted redis container with namespace "local" and service name as "redisdb" then referring that service in application as

Disadvantages of using eureka for Service Discovery with kubernetes

穿精又带淫゛_ 提交于 2019-12-10 13:48:08
问题 Context I am deploying a set of services that are containerised using Docker into AWS. No matter which deployment solution is chosen (e.g. raw EC2/ECS/Elastic Beanstalk/Fargate) we will face the issue of "service discovery". To name just a few of the options for service discovery that I've considered: AWS Route 53 Service Registry Kubernetes Hashicorp Consul Spring Cloud Netflix Eureka Specifics Of My Stack I am developing Java Spring Boot applications using Spring Cloud with the target

Resolving SRV records with iOS SDK

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 13:12:29
问题 I want to resolve DNS SRV records using the iOS SDK. I've already tried the high-level Bonjour APIs Apple is providing, but they're not what I need. Now I'm using DNS SD. void *processQueryForSRVRecord(void *record) { DNSServiceRef sdRef; int context; printf("Setting up query for record: %s\n", record); DNSServiceQueryRecord(&sdRef, 0, 0, record, kDNSServiceType_SRV, kDNSServiceClass_IN, callback, &context); printf("Processing query for record: %s\n", record); DNSServiceProcessResult(sdRef);

WCF Discovery finds endpoint but host is “localhost”

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-09 07:17:58
问题 I am trying to use the Discovery feature in WCF using http://msdn.microsoft.com/en-us/library/dd456783(v=VS.100).aspx as a starting point. It works fine on my machine, but then I wanted to run the service on a different machine. The service was discovered properly but the hostname of the found service is always "localhost" which is of course not much use. Service Endpoint: var endpointAddress = new EndpointAddress(new UriBuilder { Scheme = Uri.UriSchemeNetTcp, Port = port}.Uri); var endpoint

Prometheus dns service discovery in docker swarm relabel instance

僤鯓⒐⒋嵵緔 提交于 2019-12-07 23:55:58
问题 My question is an addition to Prometheus dns service discovery in docker swarm. I define the prometheus scrape targets as follows: - job_name: 'node-exporter' dns_sd_configs: - names: - 'tasks.nodeexporter' type: 'A' port: 9100 This works fine but results in prometheus using the IP of the docker container as instance label. I tried to relabel the instance label as follows: relabel_configs: - source_labels: [__meta_dns_name] target_label: instance But doing so results in all instances of node

Does my docker images need its own consul client instances?

女生的网名这么多〃 提交于 2019-12-07 22:39:09
问题 I've got a dockerized application split in several containers (a few frontend and backend servers, load balancer, mysql, elasticsearch, etc.). The configuration of the load balancer needs to know which containers are up and so I'm registering services with Consul service discovery. But I'm not quite sure if it's a good idea to run a consul agent on every docker container instead of using the docker host to supervise all the running docker containers and register them via Consul's HTTP-API. Is

List Of Controllers And Classes In Asp.NET Web API

送分小仙女□ 提交于 2019-12-07 06:45:06
问题 I want to access all of controllers in my web api. Let's say I have 2 controllers and 2 classes; Foo : string fooId string fooName Bar : string barId string barName Sample1Controller : Get(int fooId) Post([FromBody] Foo foo) Sample2Controller : Get(int barId) Post([FromBody] Bar bar) I want to list of my controllers, Foo and Bar class with properties. How can I do this ? Update : I want to create request and response classes for mobile apps. For example If I access these details remotely, I

Using DNS SRV records with C#

只愿长相守 提交于 2019-12-07 04:38:03
问题 Is there a built in (to the .net framework) class or function to resolve a SRV entry to the corresponding records? IE: _dmsc._tcp.network.local to an array of information (host, port, weight, priority) 回答1: Open source, BSD licensed library here: http://dndns.codeplex.com/ 回答2: Alternative solution: P/Invoke to the DnsQuery function and pass DNS_TYPE_SRV. An example can be found in this excellent post by Ruslan. I reproduce the code below in case the link breaks, but emphasize it is taken

wifi-direct end connection to peer on Android?

≯℡__Kan透↙ 提交于 2019-12-07 03:19:22
问题 Is there any way to end the connection to a peer over Wifi-Direct? I tried cancelConnect and removeGroup. Both of them returned Busy? thanks. 回答1: this is the method I am using to disconnect from peer. I noticed from logs that the android built in app also uses the same method to disconnect the peers. public static void disconnect() { if (mManager != null && mChannel != null) { mManager.requestGroupInfo(mChannel, new GroupInfoListener() { @Override public void onGroupInfoAvailable

Does my docker images need its own consul client instances?

好久不见. 提交于 2019-12-06 14:22:36
I've got a dockerized application split in several containers (a few frontend and backend servers, load balancer, mysql, elasticsearch, etc.). The configuration of the load balancer needs to know which containers are up and so I'm registering services with Consul service discovery. But I'm not quite sure if it's a good idea to run a consul agent on every docker container instead of using the docker host to supervise all the running docker containers and register them via Consul's HTTP-API. Is there any best practice around I can follow? You don't need to run a consul agent on every docker