Pertanyaan dan Jawaban Wawancara Paling Populer & Tes Online
Platform edukasi untuk persiapan wawancara, tes online, tutorial, dan latihan langsung

Bangun keterampilan dengan jalur belajar terfokus, tes simulasi, dan konten siap wawancara.

WithoutBook menghadirkan pertanyaan wawancara per subjek, tes latihan online, tutorial, dan panduan perbandingan dalam satu ruang belajar yang responsif.

Prepare Interview

Without Book Ajukan Pertanyaan

Review the question and existing answers carefully before replying. The best answers explain the reasoning, steps, and tradeoffs so other learners can benefit too.

Pertanyaan. 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.

Diposting Pada Jul 31, 2014 Diposting Oleh Abhijit
Jawaban. 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.
Diposting Pada Aug 01, 2014 Diposting Oleh Shelly

Masukkan jawaban Anda

Nama
Alamat Email
Jawaban
Pemeriksaan Keamanan
Selesaikan ini untuk melanjutkan: 7 + 2 = ?
Hak Cipta © 2026, WithoutBook.