-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Drop unmaintained Consul discovery module (#1252)
- Loading branch information
1 parent
8a64628
commit ae1af47
Showing
12 changed files
with
3 additions
and
384 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
121 changes: 0 additions & 121 deletions
121
discovery-consul/src/main/scala/akka/discovery/consul/ConsulServiceDiscovery.scala
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
discovery-consul/src/main/scala/akka/discovery/consul/ConsulSettings.scala
This file was deleted.
Oops, something went wrong.
81 changes: 0 additions & 81 deletions
81
discovery-consul/src/test/scala/akka/cluster/bootstrap/discovery/ConsulDiscoverySpec.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,4 @@ | ||
## Consul | ||
|
||
@@@ warning | ||
|
||
This module is community maintained and the Lightbend subscription doesn't cover support for this module. | ||
It is also marked as @extref:[may change](akka:common/may-change.html). | ||
That means that the API, configuration or semantics can change without warning or deprecation period. | ||
|
||
@@@ | ||
|
||
Consul currently ignores all fields apart from service name. This is expected to change. | ||
|
||
If you are using Consul to do the service discovery this would allow you to base your Cluster on Consul services. | ||
|
||
## Project Info | ||
|
||
@@project-info{ projectId="akka-discovery-consul" } | ||
|
||
The Akka dependencies are available from Akka's library repository. To access them there, you need to configure the URL for this repository. | ||
|
||
@@repository [sbt,Gradle,Maven] { | ||
id="akka-repository" | ||
name="Akka library repository" | ||
url="https://repo.akka.io/maven" | ||
} | ||
|
||
Additionally, add the dependency as below. | ||
|
||
@@dependency[sbt,Gradle,Maven] { | ||
symbol1=AkkaManagementVersion | ||
value1=$project.version$ | ||
group="com.lightbend.akka.discovery" | ||
artifact="akka-discovery-consul_$scala.binary.version$" | ||
version=AkkaManagementVersion | ||
} | ||
|
||
`akka-discovery-consul` can be used with Akka $akka.version$ or later. | ||
You have to override the following Akka dependencies by defining them explicitly in your build and | ||
define the Akka version to the one that you are using. Latest patch version of Akka is recommended and | ||
a later version than $akka.version$ can be used. | ||
|
||
@@dependency[sbt,Gradle,Maven] { | ||
symbol=AkkaVersion | ||
value=$akka.version$ | ||
group=com.typesafe.akka | ||
artifact=akka-cluster_$scala.binary.version$ | ||
version=AkkaVersion | ||
group2=com.typesafe.akka | ||
artifact2=akka-discovery_$scala.binary.version$ | ||
version2=AkkaVersion | ||
} | ||
|
||
In your application conf add: | ||
``` | ||
akka.discovery { | ||
method = akka-consul | ||
akka-consul { | ||
#How to connect to Consul to fetch services data | ||
consul-host = "127.0.0.1" | ||
consul-port = 8500 | ||
# Prefix for consul tag with the name of the actor system / application name, | ||
# services with this tag present will be found by the discovery mechanism | ||
# i.e. `system:test` will be found in cluster if the cluster system is named `test` | ||
application-name-tag-prefix = "system:" | ||
# Prefix for tag containing port number where akka management is set up so that | ||
# the seed nodes can be found, an example value for the tag would be `akka-management-port:19999` | ||
application-akka-management-port-tag-prefix = "akka-management-port:" | ||
} | ||
} | ||
``` | ||
|
||
Notes: | ||
|
||
* Since tags in Consul services are simple strings, prefixes are necessary to ensure that proper values are read. | ||
|
||
* If Akka management port tag is not found on service in Consul the implementation defaults to catalog service port. | ||
|
||
|
||
The akka-discovery-consul module had upstream security issues and was not maintained, it has therefore been dropped | ||
from Akka Management. The last published version of this module was with Akka Management 1.5.0. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.