Skip to content

Commit 62f4a16

Browse files
michal-kaliszbarteklos
authored andcommitted
release 1.0
1 parent 48db405 commit 62f4a16

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ A fully working example, you will find in the `examples` folder. There are `hell
3131
# LB will pass this information to servers.
3232
# time-to-evict (shorter: evict) - if LB won't receive heartbeat that long,
3333
# backend server is evicted from LB list (ms)
34-
$ java -jar loadbalancer-standalone/target/loadbalancer-standalone-1.0-SNAPSHOT-shaded.jar -port 9090 -heartbeats-frequency 3000 -time-to-evict 4000
34+
$ java -jar loadbalancer-standalone/target/loadbalancer-standalone-1.0-shaded.jar -port 9090 -heartbeats-frequency 3000 -time-to-evict 4000
3535
```
3636

3737
2) Run a few backend servers, the example `HelloWorldLBServer` shows how to use `BasicLoadbalancerAwareGrpcServer`:
3838
```sh
3939
# example usage, for configuration possibilities during experiments use -help option
40-
$ java -jar examples/hello-world-lbaware-server/target/hello-world-lbaware-server-1.0-SNAPSHOT-shaded.jar -p 2222 -lb "127.0.0.1:9090" -s "hello.mimgrpc.me:2222"
40+
$ java -jar examples/hello-world-lbaware-server/target/hello-world-lbaware-server-1.0-shaded.jar -p 2222 -lb "127.0.0.1:9090" -s "hello.mimgrpc.me:2222"
4141

4242
# if you are testing everything locally, on one machine, use
43-
$ LOCAL=1 java -jar examples/hello-world-lbaware-server/target/hello-world-lbaware-server-1.0-SNAPSHOT-shaded.jar -p 2222 -lb "127.0.0.1:9090" -s "hello.mimgrpc.me:2222"
43+
$ LOCAL=1 java -jar examples/hello-world-lbaware-server/target/hello-world-lbaware-server-1.0-shaded.jar -p 2222 -lb "127.0.0.1:9090" -s "hello.mimgrpc.me:2222"
4444

4545
# The server has to send its IP to the loadbalancer and by default,
4646
# it autodiscovers its public IP, but, if you don't have any, setting LOCAL=1
@@ -53,7 +53,7 @@ $ LOCAL=1 java -jar examples/hello-world-lbaware-server/target/hello-world-lbawa
5353
3) Finally, you can run clients:
5454
```sh
5555
# In args[0], you must specify host:port for the service you want to connect. You can also add number of requests being done in args[1], default is 100; after every request client sleeps for 300ms.
56-
$ java -Dio.grpc.internal.DnsNameResolverProvider.enable_grpclb=true -jar examples/hello-world-client/target/hello-world-client-1.0-SNAPSHOT-shaded.jar "hello.mimgrpc.me:2222" 100
56+
$ java -Dio.grpc.internal.DnsNameResolverProvider.enable_grpclb=true -jar examples/hello-world-client/target/hello-world-client-1.0-shaded.jar "hello.mimgrpc.me:2222" 100
5757
```
5858

5959
#### Healthchecks

basic-loadbalancer-aware-server/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.rtbhouse.grpc</groupId>
99
<artifactId>grpc-load-balancer</artifactId>
10-
<version>1.0-SNAPSHOT</version>
10+
<version>1.0</version>
1111
</parent>
1212

1313
<dependencies>

common/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.rtbhouse.grpc</groupId>
99
<artifactId>grpc-load-balancer</artifactId>
10-
<version>1.0-SNAPSHOT</version>
10+
<version>1.0</version>
1111
</parent>
1212

1313
<dependencies>

examples/hello-world-client/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.rtbhouse.grpc</groupId>
99
<artifactId>grpc-load-balancer</artifactId>
10-
<version>1.0-SNAPSHOT</version>
10+
<version>1.0</version>
1111
<relativePath>../../</relativePath>
1212
</parent>
1313

@@ -19,7 +19,7 @@
1919
<dependency>
2020
<groupId>com.rtbhouse.grpc</groupId>
2121
<artifactId>hello-world-common</artifactId>
22-
<version>1.0-SNAPSHOT</version>
22+
<version>1.0</version>
2323
</dependency>
2424

2525
<!-- GRPC dependencies -->

examples/hello-world-common/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.rtbhouse.grpc</groupId>
99
<artifactId>grpc-load-balancer</artifactId>
10-
<version>1.0-SNAPSHOT</version>
10+
<version>1.0</version>
1111
<relativePath>../../</relativePath>
1212
</parent>
1313

examples/hello-world-lbaware-server/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.rtbhouse.grpc</groupId>
99
<artifactId>grpc-load-balancer</artifactId>
10-
<version>1.0-SNAPSHOT</version>
10+
<version>1.0</version>
1111
<relativePath>../../</relativePath>
1212
</parent>
1313

@@ -58,4 +58,4 @@
5858
</plugin>
5959
</plugins>
6060
</build>
61-
</project>
61+
</project>

loadbalancer-standalone/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ RUN mvn -T1C -f pom.xml clean install -Dmaven.test.skip -am -pl :loadbalancer-st
88
FROM openjdk:11.0.1
99

1010
WORKDIR /root
11-
COPY --from=builder /sources/loadbalancer-standalone/target/loadbalancer-standalone-1.0-SNAPSHOT-shaded.jar .
11+
COPY --from=builder /sources/loadbalancer-standalone/target/loadbalancer-standalone-1.0-shaded.jar .
1212

1313
HEALTHCHECK --interval=60s --timeout=10s --start-period=1m --retries=2 CMD /bin/true
1414

15-
ENTRYPOINT exec java $JVM_OPTS -jar loadbalancer-standalone-1.0-SNAPSHOT-shaded.jar -port $LB_PORT -heartbeats-frequency 4000 -time-to-evict 5000
15+
ENTRYPOINT exec java $JVM_OPTS -jar loadbalancer-standalone-1.0-shaded.jar -port $LB_PORT -heartbeats-frequency 4000 -time-to-evict 5000

loadbalancer-standalone/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.rtbhouse.grpc</groupId>
99
<artifactId>grpc-load-balancer</artifactId>
10-
<version>1.0-SNAPSHOT</version>
10+
<version>1.0</version>
1111
</parent>
1212

1313
<properties>

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.rtbhouse.grpc</groupId>
55
<artifactId>grpc-load-balancer</artifactId>
66
<packaging>pom</packaging>
7-
<version>1.0-SNAPSHOT</version>
7+
<version>1.0</version>
88
<name>grpc-load-balancer</name>
99
<modules>
1010
<module>loadbalancer-standalone</module>

0 commit comments

Comments
 (0)