Oracle Fusion Middleware/Coherence

2장. Coherence 설치 및 캐시서버 기동

수상한 김토끼 2022. 5. 9. 16:50

안녕하세요.

'수상한 김토끼' 입니다.

1장의 소개에 이어 Oracle의 in-memory 캐시 솔루션인 Coherence를 설치해 보겠습니다.

 

이 블로그 글은 미들웨어 경험이 없으신 분들도 쉽게 따라 하실 수 있도록 쉽게 작성하는 것이 목표입니다.

설명을 보고 진행하시다가 궁금하신 내용은 댓글로 문의하시면 가능한 범위 내에서 알려 드리도록 하겠습니다.


1. Coherence 설치

코히어런스를 설치하기 위해서는 x-window 환경이 필요하며 리눅스 서버 등에 putty 등의 터미널로 접속한 경우 일반적인 방법으로는 x-windows가 지원되지 않기 때문에 x-window 환경 구성은 관련 포스팅 '리눅스 x-windows 환경 구성'을 참조해 주세요.

x-window가 지원되는 환경에서 다음 명령으로 설치를 시작합니다.

1
2
3
4
[coherence@coherence downloads]$ ls
fmw_14.1.1.0.0_coherence.jar  jdk-8u321-linux-x64.tar.gz
[coherence@coherence downloads]$ java -jar fmw_14.1.1.0.0_coherence.jar
cs

 

java -jar fmw_14.1.1.0.0_coherence.jar 파일을 실행하면 다음과 같은 로그가 출력되며 설치 GUI창이 열립니다.

1
2
3
4
5
6
7
8
9
10
11
[coherence@coherence downloads]$ ls
fmw_14.1.1.0.0_coherence.jar  jdk-8u321-linux-x64.tar.gz
[coherence@coherence downloads]$ java -jar fmw_14.1.1.0.0_coherence.jar
시작 프로그램 로그 파일은 /tmp/OraInstall2022-05-16_02-04-38PM/launcher2022-05-16_02-04-38PM.log입니다.
설치 프로그램을 추출하는 중... . 완료
CPU 속도가 300MHz 이상인지 확인 중.   실제 1804.800MHz    성공함
모니터 확인 중: 최소 256 색상을 표시하도록 구성되어 있어야 합니다..   실제 16777216    성공함
교체 공간 확인 중: 512MB 이상이어야 합니다..   실제 4096MB    성공함
이 플랫폼에 64비트 JVM이 필요한지 확인하는 중.   실제 64    성공함(64비트 필요 없음)
임시 공간 확인 중: 300MB 이상이어야 합니다..   실제 221281MB    성공함
/tmp/OraInstall2022-05-16_02-04-38PM에서 Oracle Universal Installer 시작을 준비하는 중
cs

 

설치 과정에서 한글은 지원되지 않기 때문에 한글 locale에서는 아래와 같이 설치 GUI창이 깨지게 됨으로

설치 시작 전 Locale을 영문으로 변경해 줍니다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[coherence@coherence ~]$ export LANG=en_US.UTF-8
[coherence@coherence ~]$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
cs

 

영문 locale 변경 후 다시 설치 프로그램을 시작하면 다음과 같은 gui 화면을 볼 수 있습니다.

coherence 설치 gui

설치 경로 지정 후 OK 버튼을 누르면 다음과 같은 설정 화면이 나오며 환경에 맞게 구성 후

Finish 버튼을 눌러 설치를 완료할 수 있습니다.

Auto Updates는 Skip Auto Updates를 선택합니다.

Installation Location은 코히어런스가 설치될 경로를 지정해 줍니다.

저는 /home/coherence14/coherence 경로에 설치를 진행하겠습니다.

Installation Type에서는 Test를 위해 Coherence With Examples를 선택해 줍니다.

Prerequisite Checks에서는 설치에 문제가 되는 부분이 없는지 확인해 줍니다.

예제와 같은 환경이라면 별문제 없이 설치가 가능한 것을 확인할 수 있습니다.

Installation Summary에서는 설치 경로 및 로그파일 위치 디스크 용량, 버전 등을 확인하실 수 있으며

Install 버튼을 눌러 설치를 진행해 줍니다.

Install 버튼을 누르면 다음과 같이 설치가 완료됩니다.

Finish버튼을 눌러서 설치를 종료해도 되고 Next버튼을 눌러 설치 상세정보를 확인도 가능합니다.

설치가 완료되었습니다. Finish 버튼을 눌러 설치를 종료합니다.


2. Coherence 설치경로 둘러보기

Installer 종료 후 설치 경로에서 다음과 같이 설치된 내역 확인이 가능합니다.

1
2
3
4
5
6
7
8
[coherence@coherence coherence14c]$ ls -l
total 4
drwxr-x---.  7 coherence coherence  89 May 11 09:56 coherence
drwxr-x---16 coherence coherence 248 May 11 09:57 inventory
drwxr-x---11 coherence coherence 265 May 11 09:57 OPatch
drwxr-x---.  6 coherence coherence  59 May 11 09:56 oracle_common
-rw-r-----.  1 coherence coherence 135 May 11 09:57 oraInst.loc
drwxr-x---.  8 coherence coherence 129 May 11 09:57 oui
cs

 

/home/coherence14c/coherence 경로가 코히어런스의 홈 디렉터리로 코히어런스는

COHERENCE_HOME이란 환경변수에 /home/coherence14c/coherence 경로를 지정하여 사용하게 됩니다.

 

이 디렉터리는 다음과 같은 구조로 되어 있습니다.

1
2
3
4
5
6
7
8
[coherence@coherence coherence]$ ls -l
total 8
drwxr-x---2 coherence coherence  189 May 11 10:07 bin
drwxr-x---3 coherence coherence   42 May 11 09:56 doc
drwxr-x---8 coherence coherence   87 May 11 09:56 examples
drwxr-x---3 coherence coherence 4096 May 11 09:56 lib
drwxr-x---5 coherence coherence   54 May 11 09:56 plugins
-rw-r-----1 coherence coherence  100 Nov 21  2019 product.xml

3. Coherence 캐시 서버 실행하기

COHERENCE_HOME/bin 경로로 이동하여 코히어런스 캐시 서버를 기동해 줍니다.

1
2
3
4
5
6
7
8
9
10
[coherence@coherence bin]$ ls -l
total 32
-rwxr-x---1 coherence coherence 1130 May 11 10:07 cache-server.sh
-rwxr-x---1 coherence coherence 1071 May 11 10:06 cache-server.sh.20220511
-rwxr-x---1 coherence coherence 1398 Nov 21  2019 coherence.sh
-rwxr-x---1 coherence coherence  808 Nov 21  2019 datagram-test.sh
-rwxr-x---1 coherence coherence  811 Nov 21  2019 multicast-test.sh
-rwxr-x---1 coherence coherence 1130 Nov 21  2019 pof-config-gen.sh
-rwxr-x---1 coherence coherence 1289 Nov 21  2019 query.sh
-rw-r-----1 coherence coherence  222 Nov 21  2019 readme.txt
cs

 

방화벽 설정등 멀티캐스트 통신이 불가능한 경우 아래와 같이 기동 오류가 발생됩니다.

멀티캐스트 오류가 반복되다 Timeout에 걸려 실행이 실패하고 말았습니다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[coherence@coherence bin]$ ./cache-server.sh
java version "1.8.0_321"
Java(TM) SE Runtime Environment (build 1.8.0_321-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.321-b07, mixed mode)
 
2022-05-16 14:18:54.002/0.626 Oracle Coherence 14.1.1.0.0 <Info> (thread=main, member=n/a): Loaded operational configuration from "jar:file:/home/coherence/coherence14c/coherence/lib/coherence.jar!/tangosol-coherence.xml"
2022-05-16 14:18:54.071/0.695 Oracle Coherence 14.1.1.0.0 <Info> (thread=main, member=n/a): Loaded operational overrides from "jar:file:/home/coherence/coherence14c/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
2022-05-16 14:18:54.071/0.696 Oracle Coherence 14.1.1.0.0 <Info> (thread=main, member=n/a): Optional configuration override "/tangosol-coherence-override.xml" is not specified
2022-05-16 14:18:54.075/0.699 Oracle Coherence 14.1.1.0.0 <Info> (thread=main, member=n/a): Optional configuration override "cache-factory-config.xml" is not specified
2022-05-16 14:18:54.075/0.700 Oracle Coherence 14.1.1.0.0 <Info> (thread=main, member=n/a): Optional configuration override "cache-factory-builder-config.xml" is not specified
2022-05-16 14:18:54.075/0.700 Oracle Coherence 14.1.1.0.0 <Info> (thread=main, member=n/a): Optional configuration override "/custom-mbeans.xml" is not specified
 
Oracle Coherence Version 14.1.1.0.0 Build 77467
 Grid Edition: Development mode
Copyright (c) 20002020, Oracle and/or its affiliates. All rights reserved.
 
2022-05-16 14:18:54.357/0.981 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=main, member=n/a): Loaded cache configuration from "jar:file:/home/coherence/coherence14c/coherence/lib/coherence.jar!/coherence-cache-config.xml"
2022-05-16 14:18:54.819/1.444 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=main, member=n/a): The cluster name has not been configured, a value of "coherence's cluster" has been automatically generated
2022-05-16 14:18:54.971/1.596 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=main, member=n/a): Created cache factory com.tangosol.net.ExtensibleConfigurableCacheFactory
2022-05-16 14:18:55.295/1.919 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=main, member=n/a): TCMP bound to /10.0.0.234:41737 using SystemDatagramSocketProvider
2022-05-16 14:19:25.867/32.491 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): This Member(Id=0, Timestamp=2022-05-16 14:18:55.361, Address=10.0.0.234:41737, MachineId=41800, Location=process:3212, Role=CoherenceServer) has been attempting to join the cluster at address /239.192.0.0:7574 with TTL 4 for 30 seconds without success; this could indicate a mis-configured TTL value, or it may simply be the result of a busy cluster or active failover.
2022-05-16 14:19:25.867/32.491 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:19:32.678/39.302 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:19:39.489/46.115 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:19:46.297/52.921 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:19:53.106/59.730 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:19:59.913/66.538 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:20:06.723/73.348 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:20:13.530/80.155 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:20:20.336/86.961 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:20:27.146/93.770 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:20:33.955/100.580 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:20:40.762/107.387 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:20:47.570/114.194 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:20:54.380/121.005 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:21:01.184/127.809 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:21:07.994/134.619 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:21:14.803/141.428 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:21:21.612/148.237 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:21:28.419/155.044 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:21:35.229/161.853 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:21:42.035/168.660 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:21:48.844/175.469 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:21:55.652/182.276 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:22:02.460/189.085 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:22:09.267/195.892 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:22:16.075/202.700 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:22:22.883/209.507 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:22:29.691/216.316 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:22:36.499/223.124 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:22:43.309/229.934 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:22:50.117/236.741 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:22:56.924/243.548 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:23:03.732/250.357 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:23:10.538/257.163 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:23:17.346/263.971 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:23:24.156/270.781 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:23:30.965/277.590 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:23:37.773/284.398 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:23:44.580/291.205 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:23:51.389/298.013 Oracle Coherence GE 14.1.1.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; multicast networking appears to be inoperable on interface 10.0.0.234 as this process isn't receiving even its own transmissions; consider switching network interfaces or using WKA based clustering
2022-05-16 14:23:55.459/302.084 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=Cluster, member=n/a): Service Cluster left the cluster
Exception in thread "main" com.tangosol.net.RequestTimeoutException: Timeout during service start: ServiceInfo(Id=0, Name=Cluster, Type=Cluster
  MemberSet=MasterMemberSet(
    ThisMember=null
    OldestMember=null
    ActualMemberSet=MemberSet(Size=0
      )
    MemberId|ServiceJoined|MemberState|Version
    RecycleMillis=1200000
    RecycleSet=MemberSet(Size=0
      )
    )
)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onStartupTimeout(Grid.CDB:3)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:28)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:6)
        at com.tangosol.coherence.component.net.Cluster.startSystemServices(Cluster.CDB:4)
        at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:63)
        at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:12)
        at com.tangosol.coherence.component.util.SafeCluster.startCluster(SafeCluster.CDB:5)
        at com.tangosol.coherence.component.util.SafeCluster.restartCluster(SafeCluster.CDB:10)
        at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluster(SafeCluster.CDB:32)
        at com.tangosol.coherence.component.util.SafeCluster.getRunningCluster(SafeCluster.CDB:7)
        at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.CDB:5)
        at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:580)
        at com.tangosol.net.ExtensibleConfigurableCacheFactory.ensureService(ExtensibleConfigurableCacheFactory.java:829)
        at com.tangosol.net.ExtensibleConfigurableCacheFactory.startServices(ExtensibleConfigurableCacheFactory.java:943)
        at com.tangosol.net.ExtensibleConfigurableCacheFactory.activate(ExtensibleConfigurableCacheFactory.java:626)
        at com.tangosol.net.DefaultCacheServer.startServicesInternal(DefaultCacheServer.java:565)
        at com.tangosol.net.DefaultCacheServer.initialStartServices(DefaultCacheServer.java:503)
        at com.tangosol.net.DefaultCacheServer.lambda$startAndMonitor$0(DefaultCacheServer.java:87)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.tangosol.net.DefaultCacheServer.startAndMonitor(DefaultCacheServer.java:84)
        at com.tangosol.net.DefaultCacheServer.main(DefaultCacheServer.java:430)
2022-05-16 14:23:55.460/302.085 Oracle Coherence GE 14.1.1.0.0 <Error> (thread=main, member=n/a): Error while starting cluster: com.tangosol.net.RequestTimeoutException: Timeout during service start: ServiceInfo(Id=0, Name=Cluster, Type=Cluster
  MemberSet=MasterMemberSet(
    ThisMember=null
    OldestMember=null
    ActualMemberSet=MemberSet(Size=0
      )
    MemberId|ServiceJoined|MemberState|Version
    RecycleMillis=1200000
    RecycleSet=MemberSet(Size=0
      )
    )
)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onStartupTimeout(Grid.CDB:3)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:28)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:6)
        at com.tangosol.coherence.component.net.Cluster.startSystemServices(Cluster.CDB:4)
        at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:63)
        at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:12)
        at com.tangosol.coherence.component.util.SafeCluster.startCluster(SafeCluster.CDB:5)
        at com.tangosol.coherence.component.util.SafeCluster.restartCluster(SafeCluster.CDB:10)
        at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluster(SafeCluster.CDB:32)
        at com.tangosol.coherence.component.util.SafeCluster.getRunningCluster(SafeCluster.CDB:7)
        at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.CDB:5)
        at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:580)
        at com.tangosol.net.ExtensibleConfigurableCacheFactory.ensureService(ExtensibleConfigurableCacheFactory.java:829)
        at com.tangosol.net.ExtensibleConfigurableCacheFactory.startServices(ExtensibleConfigurableCacheFactory.java:943)
        at com.tangosol.net.ExtensibleConfigurableCacheFactory.activate(ExtensibleConfigurableCacheFactory.java:626)
        at com.tangosol.net.DefaultCacheServer.startServicesInternal(DefaultCacheServer.java:565)
        at com.tangosol.net.DefaultCacheServer.initialStartServices(DefaultCacheServer.java:503)
        at com.tangosol.net.DefaultCacheServer.lambda$startAndMonitor$0(DefaultCacheServer.java:87)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.tangosol.net.DefaultCacheServer.startAndMonitor(DefaultCacheServer.java:84)
        at com.tangosol.net.DefaultCacheServer.main(DefaultCacheServer.java:430)
 
cs

 

root 사용자로 방화벽 설정(이 글에서는 방화벽 disable)을 해 줍니다.

 

firewalld 상태를 확인해 보니 coherence에서 멀티캐스트 통신이 실패했던 로그도 확인되네요.

 

실제 운영환경에서는 멀티캐스트 관련 부분 설정을 추가 해 주셔야 합니다.

지금은 테스트 목적임으로 편의상 방화벽을 내리고 작업하도록 하겠습니다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[root@coherence ~]# systemctl stop firewalld
[root@coherence ~]# service firewalld status
Redirecting to /bin/systemctl status firewalld.service
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor p>
   Active: inactive (dead) since Mon 2022-05-16 14:27:23 KST; 48s ago
     Docs: man:firewalld(1)
  Process: 1271 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS >
 Main PID: 1271 (code=exited, status=0/SUCCESS)
 
May 16 09:20:50 coherence firewalld[1271]: WARNING: Passthrough '-A',BareMetalI>
May 16 09:20:50 coherence firewalld[1271]: WARNING: Passthrough '-A',BareMetalI>
May 16 09:20:50 coherence firewalld[1271]: WARNING: Passthrough '-A',BareMetalI>
May 16 09:20:50 coherence firewalld[1271]: WARNING: Passthrough '-A',BareMetalI>
May 16 09:20:50 coherence firewalld[1271]: WARNING: Passthrough '-A',BareMetalI>
May 16 09:20:50 coherence firewalld[1271]: WARNING: Passthrough '-A',BareMetalI>
May 16 09:20:50 coherence firewalld[1271]: WARNING: Passthrough '-A',BareMetalI>
May 16 14:27:22 coherence systemd[1]: Stopping firewalld - dynamic firewall dae>
May 16 14:27:23 coherence systemd[1]: firewalld.service: Succeeded.
May 16 14:27:23 coherence systemd[1]: Stopped firewalld - dynamic firewall daem>
cs

 

캐시서버를 기동 하면 다음과 같이 Started DefaultCacheServer... 로그를 확인할 수 있습니다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[coherence@coherence bin]$ ./cache-server.sh
java version "1.8.0_321"
Java(TM) SE Runtime Environment (build 1.8.0_321-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.321-b07, mixed mode)
 
2022-05-16 14:31:28.226/0.566 Oracle Coherence 14.1.1.0.0 <Info> (thread=main, member=n/a): Loaded operational configuration from "jar:file:/home/coherence/coherence14c/coherence/lib/coherence.jar!/tangosol-coherence.xml"
2022-05-16 14:31:28.322/0.662 Oracle Coherence 14.1.1.0.0 <Info> (thread=main, member=n/a): Loaded operational overrides from "jar:file:/home/coherence/coherence14c/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
2022-05-16 14:31:28.328/0.669 Oracle Coherence 14.1.1.0.0 <Info> (thread=main, member=n/a): Optional configuration override "/tangosol-coherence-override.xml" is not specified
2022-05-16 14:31:28.333/0.673 Oracle Coherence 14.1.1.0.0 <Info> (thread=main, member=n/a): Optional configuration override "cache-factory-config.xml" is not specified
2022-05-16 14:31:28.334/0.674 Oracle Coherence 14.1.1.0.0 <Info> (thread=main, member=n/a): Optional configuration override "cache-factory-builder-config.xml" is not specified
2022-05-16 14:31:28.334/0.674 Oracle Coherence 14.1.1.0.0 <Info> (thread=main, member=n/a): Optional configuration override "/custom-mbeans.xml" is not specified
 
Oracle Coherence Version 14.1.1.0.0 Build 77467
 Grid Edition: Development mode
Copyright (c) 20002020, Oracle and/or its affiliates. All rights reserved.
 
2022-05-16 14:31:28.597/0.937 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=main, member=n/a): Loaded cache configuration from "jar:file:/home/coherence/coherence14c/coherence/lib/coherence.jar!/coherence-cache-config.xml"
2022-05-16 14:31:29.045/1.385 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=main, member=n/a): The cluster name has not been configured, a value of "coherence's cluster" has been automatically generated
2022-05-16 14:31:29.148/1.488 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=main, member=n/a): Created cache factory com.tangosol.net.ExtensibleConfigurableCacheFactory
2022-05-16 14:31:29.499/1.839 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=main, member=n/a): TCMP bound to /10.0.0.234:46763 using SystemDatagramSocketProvider
2022-05-16 14:31:32.792/5.133 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=NameService:TcpAcceptor, member=n/a): TcpAcceptor now listening for connections on coherence.sub05100041460.coherencevcn.oraclevcn.com:46763.3
2022-05-16 14:31:32.793/5.133 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=Cluster, member=n/a): NameService now listening for connections on coherence.sub05100041460.coherencevcn.oraclevcn.com:7574.3
2022-05-16 14:31:32.795/5.135 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=Cluster, member=n/a): Created a new cluster "coherence's cluster" with Member(Id=1, Timestamp=2022-05-16 14:31:29.546, Address=10.0.0.234:46763, MachineId=41800, Location=process:3514, Role=CoherenceServer, Edition=Grid Edition, Mode=Development, CpuCount=2, SocketCount=2)
2022-05-16 14:31:32.822/5.162 Oracle Coherence GE 14.1.1.0.0 <D5> (thread=Transport:TransportService, member=n/a): Service TransportService is bound to tmb://10.0.0.234:46763.49184
2022-05-16 14:31:32.832/5.172 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=Transport:TransportService, member=n/a): Service TransportService joined the cluster with senior service member 1
2022-05-16 14:31:32.835/5.175 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=main, member=n/a): Started cluster Name=coherence's cluster, ClusterPort=7574
 
Group{Address=239.192.0.0, TTL=4}
 
MasterMemberSet(
  ThisMember=Member(Id=1, Timestamp=2022-05-16 14:31:29.546, Address=10.0.0.234:46763, MachineId=41800, Location=process:3514, Role=CoherenceServer)
  OldestMember=Member(Id=1, Timestamp=2022-05-16 14:31:29.546, Address=10.0.0.234:46763, MachineId=41800, Location=process:3514, Role=CoherenceServer)
  ActualMemberSet=MemberSet(Size=1
    Member(Id=1, Timestamp=2022-05-16 14:31:29.546, Address=10.0.0.234:46763, MachineId=41800, Location=process:3514, Role=CoherenceServer)
    )
  MemberId|ServiceJoined|MemberState|Version
    1|2022-05-16 14:31:29.546|JOINED|14.1.1.0.0
  RecycleMillis=1200000
  RecycleSet=MemberSet(Size=0
    )
  )
 
TcpRing{Connections=[]}
IpMonitor{Addresses=0, Timeout=15s}
 
2022-05-16 14:31:32.847/5.187 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=Invocation:Management, member=1): Service Management joined the cluster with senior service member 1
2022-05-16 14:31:32.915/5.255 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=main, member=1): Loaded Reporter configuration from "jar:file:/home/coherence/coherence14c/coherence/lib/coherence.jar!/reports/report-group.xml"
2022-05-16 14:31:32.948/5.288 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=main, member=1): JMXConnectorServer now listening for connections on coherence.sub05100041460.coherencevcn.oraclevcn.com
2022-05-16 14:31:32.968/5.308 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=main, member=1): Loaded Reporter configuration from "jar:file:/home/coherence/coherence14c/coherence/lib/coherence.jar!/reports/report-group.xml"
2022-05-16 14:31:33.155/5.495 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=DistributedCache:PartitionedCache, member=1): Service PartitionedCache joined the cluster with senior service member 1
2022-05-16 14:31:33.175/5.515 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=DistributedCache:PartitionedCache, member=1): Service PartitionedCache: sending PartitionConfig ConfigSync to all
2022-05-16 14:31:33.209/5.549 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=DistributedCache:PartitionedCache, member=1): This member has become the distribution coordinator for MemberSet(Size=1
  Member(Id=1, Timestamp=2022-05-16 14:31:29.546, Address=10.0.0.234:46763, MachineId=41800, Location=process:3514, Role=CoherenceServer)
  )
2022-05-16 14:31:33.233/5.573 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=DistributedCache:PartitionedTopic, member=1): Loaded POF configuration from "jar:file:/home/coherence/coherence14c/coherence/lib/coherence.jar!/pof-config.xml"
2022-05-16 14:31:33.280/5.620 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=DistributedCache:PartitionedTopic, member=1): Loaded included POF configuration from "jar:file:/home/coherence/coherence14c/coherence/lib/coherence.jar!/coherence-pof-config.xml"
2022-05-16 14:31:33.301/5.641 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=DistributedCache:PartitionedCache, member=1): Partition ownership has stabilized with 1 nodes
2022-05-16 14:31:33.435/5.775 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=DistributedCache:PartitionedTopic, member=1): Service PartitionedTopic joined the cluster with senior service member 1
2022-05-16 14:31:33.447/5.787 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=DistributedCache:PartitionedTopic, member=1): Service PartitionedTopic: sending PartitionConfig ConfigSync to all
2022-05-16 14:31:33.464/5.804 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=DistributedCache:PartitionedTopic, member=1): This member has become the distribution coordinator for MemberSet(Size=1
  Member(Id=1, Timestamp=2022-05-16 14:31:29.546, Address=10.0.0.234:46763, MachineId=41800, Location=process:3514, Role=CoherenceServer)
  )
2022-05-16 14:31:33.513/5.853 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=DistributedCache:PartitionedTopic, member=1): Partition ownership has stabilized with 1 nodes
2022-05-16 14:31:33.521/5.861 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=Proxy:TcpAcceptor, member=1): TcpAcceptor now listening for connections on coherence.sub05100041460.coherencevcn.oraclevcn.com:46763.55216
2022-05-16 14:31:33.528/5.868 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=Proxy, member=1): Service Proxy joined the cluster with senior service member 1
2022-05-16 14:31:33.539/5.879 Oracle Coherence GE 14.1.1.0.0 <Info> (thread=main, member=1):
Services
  (
  ClusterService{Name=Cluster, State=(SERVICE_STARTED, STATE_JOINED), Id=0, OldestMemberId=1}
  TransportService{Name=TransportService, State=(SERVICE_STARTED), Id=1, OldestMemberId=1}
  InvocationService{Name=Management, State=(SERVICE_STARTED), Id=2, OldestMemberId=1}
  PartitionedCache{Name=PartitionedCache, State=(SERVICE_STARTED), Id=3, OldestMemberId=1, LocalStorage=enabled, PartitionCount=257, BackupCount=1, AssignedPartitions=257, BackupPartitions=0, CoordinatorId=1}
  PartitionedCache{Name=PartitionedTopic, State=(SERVICE_STARTED), Id=4, OldestMemberId=1, LocalStorage=enabled, PartitionCount=257, BackupCount=1, AssignedPartitions=257, BackupPartitions=0, CoordinatorId=1}
  ProxyService{Name=Proxy, State=(SERVICE_STARTED), Id=5, OldestMemberId=1}
  )
 
Started DefaultCacheServer...
 
cs

여기까지 기본적인 코히어런스 설치 및 캐시 서버 기동까지 진행해 보았습니다.

다음 장에서는 캐시서버 기동 및 설치시 제공 된 예제를 실행해 보도록 하겠습니다.