Skip to content

Commit

Permalink
Update scale-out_java.md
Browse files Browse the repository at this point in the history
  • Loading branch information
making committed Dec 26, 2016
1 parent d53c1dd commit 4d0956e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scale-out_java.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Cloud Foundry内のRouterによってHTTPリクエストは2インスタンス
折角なので、どちらのインスタンスにアクセスしているか分かるようにソースコードを修正しましょう。

``` java
@RequestMapping("/")
@GetMapping("/")
String hello() {
return greeter.hello() + " (" + System.getenv("CF_INSTANCE_INDEX") + ")"; // この行を変更
}
Expand All @@ -71,7 +71,7 @@ Cloud Foundry内のRouterによってHTTPリクエストは2インスタンス
今度はメモリ512MB、インスタンス数2を指定して`cf push`します。

``` console
$ ./mvnw clean package
$ ./mvnw package -Dmaven.test.skip=true
$ cf push hello-redis-tmaki -p target/hello-redis-0.0.1-SNAPSHOT.jar -m 512m -i 2
```

Expand Down

0 comments on commit 4d0956e

Please sign in to comment.