質問編集履歴
2
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,12 +28,6 @@
|
|
28
28
|
|
29
29
|
現在 nginx→nodeへの接続が行われなくなるエラーが起きています。
|
30
30
|
|
31
|
-
```error.log
|
32
|
-
|
33
|
-
2018/11/01 18:15:02 [error] 1713#0: *1 upstream timed out (110: Connection timed out) while connecting to upstream, client: xx.xx.xxx.xxx, server: , request: "GET / HTTP/1.1", upstream: "http://xx.xx.xx.xx:8082/", host: "xx.xx.xx.xx"
|
34
|
-
|
35
|
-
```
|
36
|
-
|
37
31
|
このとき、nodeのプロセスは残存しており、ステータスにも異常が見られません。
|
38
32
|
|
39
33
|
暫定対応として、 nginx→nodeへのヘルスチェックを行い、failedとなったプロキシ先nodeプロセスを再起動させたいのですが、良い方法が浮かびません。
|
1
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,9 +8,31 @@
|
|
8
8
|
|
9
9
|
nginx側設定ではupstreamにより4つのnode(ポート番号での振り分け)へのロードバランサを行なっています。
|
10
10
|
|
11
|
+
```nginx.conf
|
12
|
+
|
13
|
+
upstream backend {
|
14
|
+
|
15
|
+
server 127.0.0.1:xxxx;
|
16
|
+
|
17
|
+
server 127.0.0.1:xxxx;
|
18
|
+
|
19
|
+
server 127.0.0.1:xxxx;
|
20
|
+
|
21
|
+
server 127.0.0.1:xxxx;
|
22
|
+
|
23
|
+
}
|
24
|
+
|
25
|
+
```
|
11
26
|
|
12
27
|
|
13
|
-
|
28
|
+
|
29
|
+
現在 nginx→nodeへの接続が行われなくなるエラーが起きています。
|
30
|
+
|
31
|
+
```error.log
|
32
|
+
|
33
|
+
2018/11/01 18:15:02 [error] 1713#0: *1 upstream timed out (110: Connection timed out) while connecting to upstream, client: xx.xx.xxx.xxx, server: , request: "GET / HTTP/1.1", upstream: "http://xx.xx.xx.xx:8082/", host: "xx.xx.xx.xx"
|
34
|
+
|
35
|
+
```
|
14
36
|
|
15
37
|
このとき、nodeのプロセスは残存しており、ステータスにも異常が見られません。
|
16
38
|
|