가장 많이 묻는 면접 질문과 답변 & 온라인 테스트
면접 준비, 온라인 테스트, 튜토리얼, 라이브 연습을 위한 학습 플랫폼

집중 학습 경로, 모의고사, 면접 준비 콘텐츠로 실력을 키우세요.

WithoutBook은 주제별 면접 질문, 온라인 연습 테스트, 튜토리얼, 비교 가이드를 하나의 반응형 학습 공간으로 제공합니다.

Prepare Interview

모의 시험

홈페이지로 설정

이 페이지 북마크

이메일 주소 구독

Without Book 질문하기

질문. Create cluster in local glassfish

- Hi,
I want to create cluster to pass my load on different clusters. Please let me know how can I do that in my windows?
Thanks.

작성일 Jul 31, 2014 작성자 Abhijit
답변. Once Glassfish DAS starts you can create multiple clusters in your local glassfish:

Commands:

Create Cluster:

$ bin/asadmin create-cluster cluster1
Command create-cluster executed successfully.

Create Instance (instance1):

$ bin/asadmin create-local-instance --cluster cluster1 instance1
Rendezvoused with DAS on localhost:4848.
Port Assignments for server instance instance1:
JMX_SYSTEM_CONNECTOR_PORT=28686
JMS_PROVIDER_PORT=27676
HTTP_LISTENER_PORT=38080
ASADMIN_LISTENER_PORT=24848
JAVA_DEBUGGER_PORT=29009
IIOP_SSL_LISTENER_PORT=23820
IIOP_LISTENER_PORT=23700
OSGI_SHELL_TELNET_PORT=26666
HTTP_SSL_LISTENER_PORT=28181
IIOP_SSL_MUTUALAUTH_PORT=23920
Command create-local-instance executed successfully.

Create Instance (instance2):

$ asadmin create-local-instance --cluster cluster1 instance2
Rendezvoused with DAS on localhost:4848.
Using DAS host localhost and port 4848 from existing das.properties for node
localhost-domain1. To use a different DAS, create a new node using create-node-ssh or
create-node-config. Create the instance with the new node and correct
host and port:
asadmin --host das_host --port das_port create-local-instance --node node_name instance_name.
Port Assignments for server instance instance2:
JMX_SYSTEM_CONNECTOR_PORT=28687
JMS_PROVIDER_PORT=27677
HTTP_LISTENER_PORT=38081
ASADMIN_LISTENER_PORT=24849
JAVA_DEBUGGER_PORT=29010
IIOP_SSL_LISTENER_PORT=23821
IIOP_LISTENER_PORT=23701
OSGI_SHELL_TELNET_PORT=26667
HTTP_SSL_LISTENER_PORT=28182
IIOP_SSL_MUTUALAUTH_PORT=23921
Command create-local-instance executed successfully.

Start a cluster:
$ bin/asadmin start-cluster cluster1
Command start-cluster executed successfully.

The same way you can create another cluster.

You can check summary on clusters by below command:
$ bin/asadmin list-instances -l
NAME HOST PORT PID CLUSTER STATE
instance1 localhost 24848 15421 cluster1 running
instance2 localhost 24849 15437 cluster1 running
Command list-instances executed successfully.

To Stop Cluster:
Stop a cluster:
$ bin/asadmin stop-cluster cluster1
Command stop-cluster executed successfully.
작성일 Aug 01, 2014 작성자 Shelly

답변 입력

이름
이메일 주소
답변
보안 확인
계속하려면 풀어주세요: 9 + 1 = ?
Copyright © 2026, WithoutBook.