??? Apache ? GlassFish ??????????
GlassFish ??????????????????????
?????????GlassFish ??????????????
?????????????????

????GlassFish ?????????????????????
GlassFish ????????????Apache ??????????
?????????????? Apache ???????????????
??????????????????????????????
???????????????????????????????
??????????????????????Web ?????
?????????????????????????????????

GlassFish ??????????????????????Apache ?
?????????????? mod_proxy ????????????
????????????????????????????????
?????????????????????????????

dashost > asadmin set "cluster1.server-ref.instance2.lb-enabled=false"
cluster1.server-ref.instance2.lb-enabled = false
dashost > asadmin apply-http-lb-changes lb-config
???? apply-http-lb-changes ????????????

???????????????????????????????
?????????????????????? asadmin ??????
?????????????????????????????????
????????????????????????????????????
?????????????????????????????????
asadmin ????????????????


??????????
???apache2.2.14
???OpenSSL/0.9.8k *Install:
????????????/usr/local/ssl
???GlassFish:
????????????/sun/glassfish-v2.1.1
????http://www.sun.com/appserver ????
???GlassFish LB Plugin ?aslb-9.1.1-b**.jar?????
????http://download.java.net/javaee5/ext...nOS/aslb/jars/ ?Solaris SPARC??
????http://download.java.net/javaee5/ext.../jars/(Solarix x86?)
????http://download.java.net/javaee5/ext...nux/aslb/jars/ (Linux ?)
????http://download.java.net/javaee5/ext...NNT/aslb/jars/ (Windows ?)

????????
???????????????????????????????????
??????????????????????????????????
????????????????????????????????????
?????????????????????????

???????????????????????dashost.japan.sun.com dashost > ???(CA)??ca-admin.japan.sun.com ca-admin > Apache Web ????apache.japan.sun.com apache > ???????????nodeagent1.japan.sun.com nodeagent1 > ???????????nodeagent2.japan.sun.com nodeagent2 >

?????(das/nodeagent1/nodeagent2 ????????????)?
????????????????????????????????????
???????

dashost > vi .tcshrc
set path=?/usr/sfw/bin /sun/glassfish-v2.1.1/bin /usr/jdk/jdk1.6.0_17/bin $path?
setenv LD_LIBRARY_PATH "/sun/glassfish-v2.1.1/lib:/sun/glassfish-v2.1.1/lib/plug
in/lib:/usr/sfw/lib:/lib:/usr/lib"
setenv JAVA_HOME /usr/jdk/jdk1.6.0_17
setenv AS_ADMIN_USER clusterAdmin
setenv AS_ADMIN_PASSWORDFILE /export/home/appserv/.passwordfile
setenv AS_ADMIN_HOST dashost.japan.sun.com
setenv AS_ADMIN_PORT 5048


?????????(das/nodeagent1/nodeagent2 ????????????)?
?????????????????????????????????????
?????????AS_ADMIN_PASSWORD ? GUI ?????????????
?????? AS_ADMIN_MASTERPASSWORD? SSL ???????????
??????????????????

dashost > vi .passwordfile
AS_ADMIN_PASSWORD=adminadmin
AS_ADMIN_MASTERPASSWORD=changeit


Apache 2.2.14 ??????
SSL ? ??????????????????? make ????
apache > ./configure --with-ssl=/usr/local/ssl --prefix=/usr/local/apache2.2.14 --enable-ssl --enable-so --with-included-apr
apache > make
apache > make install


Apache ????????
apache >vi /usr/local/apache2.2.14/conf/httpd.conf
ServerName apache.japan.sun.com


Apache ?????
Apache ??????????????????????
apache > /usr/local/apache2.2.14/bin/apachectl start

TELNET ???????? Server ????????
apache > telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET / HTTP/1.1
Host: apache.japan.sun.com

HTTP/1.1 200 OK
Date: Fri, 25 Dec 2009 05:53:39 GMT
Server: Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8k
Last-Modified: Sat, 20 Nov 2004 20:16:24 GMT
ETag: "f580c-2c-3e9564c23b600"
Accept-Ranges: bytes
Content-Length: 44
Content-Type: text/html

It works!



?????????????? Apache ??????????
apache > /usr/local/apache2.2.14/bin/apachectl stop

??????? GlassFish ???????????????????
?????????????????????????
dashost > asadmin create-domain --portbase=5000 --profile=cluster clusterDomain
Admin ???? 5048 ?????????
HTTP Instance ???? 5080 ?????????
JMS ???? 5076 ?????????
IIOP ???? 5037 ?????????
HTTP_SSL ???? 5081 ?????????
IIOP_SSL ???? 5038 ?????????
IIOP_MUTUALAUTH ???? 5039 ?????????
JMX_ADMIN ???? 5086 ?????????
??????????? ????????????? cluster ??????????????????
????????? [ja_JP] ?????? [/sun/glassfish-v2.1.1/lib/install/templates/locales/ja_JP/index.html] ????????????????? (en_US) ? index.html ???????
??????????????: JKS
???? clusterDomain ?????????
dashost >

?? GlassFish ???????????????????????
??????????? certutil ???????????
???????????certutil ????? GlassFish
with HADB ????????????????????????
?????????? HADB ?????????????
????????JavaSE ??? keytool ???????????????????

dashost > cd domains/clusterDomain/config/
dashost > keytool -export -rfc -alias s1as -keystore keystore.jks -file sjas.crt
????????????????????:
???????? ?????????
dashost >

Apache ? SSL ???LB ????????

???????????????
Apache ? httpd.conf ?????????????????????
????????????????????
apache > vi /usr/local/apache2.2.14/conf/httpd.conf

??
##BEGIN EE LB Plugin Parameters
LoadFile /usr/lib/libCstd.so.1
LoadModule apachelbplugin_module */usr/local/apache2.2.14/modules/mod_loadbalancer.so
#AddModule apachelbplugin_module

config-file */usr/local/apache2.2.14/conf/loadbalancer.xml
locale en

##END EE LB Plugin Parameters


GlassFish ?????????????????????
GlassFish ??????????????? (sjsas.crt) ? Apache ?
???????????????????
apache > mkdir /usr/local/apache2.2.14/conf/ssl.crt

DAS ???????????????(sjsas.crt)???? FTP ?? Apache ???????????
apache > mv sjsas.crt /usr/local/apache2.2.14/conf/ssl.crt/
apache > cd /usr/local/apache2.2.14/conf/ssl.crt/
apache > keytool -printcert -file sjsas.crt
???: CN=dashost, OU=Sun GlassFish Enterprise Server, O=Sun Microsystems, L=Santa Clara, ST=California, C=US
???: CN=dashost, OU=Sun GlassFish Enterprise Server, O=Sun Microsystems, L=Santa Clara, ST=California, C=US
??????: 4b345534
????????: Fri Dec 25 15:01:24 JST 2009 ???: Mon Dec 23 15:01:24 JST 2019
?????????????:
MD5: 84:FD:B4:E9:B7:EF:88:F2:04:B0:20:23:9D:D9:A5:9E
SHA1: DC:48:8E:C4:A2:AB:C2:AF:FC:8B:C5:54:59:F5:39:14:0D :82:E3:BE
?????????: SHA1withRSA
?????: 3
??:
#1: ObjectId: 2.5.29.14 Criticality=false
SubjectKeyIdentifier [
KeyIdentifier [
0000: FA EA 09 87 42 BC D8 04 C3 88 B1 8E 93 2D 0A 3A ....B........-.:
0010: 74 3B 19 07 t;..
]
]
apache >

????GlassFish ?????????????????????4b345534?
??????????

Apache SSL?????? LB ?????????

???????????
????????????????????????????
?????????????????????????????
????????????????????????????
???Apache ? httpd-ssl.conf ?????????????????
?????????
???4b345534?? 4B345534 ????
apache > vi /usr/local/apache2.2.14/conf/extra/httpd-ssl.conf

cd /usr/local/apache2.2.14/conf/ssl.key
apache > openssl genrsa -des3 -out apache.japan.sun.com.key 2048
Generating RSA private key, 2048 bit long modulus
........................+++
.......+++
e is 65537 (0x10001)
Enter pass phrase for apache.japan.sun.com.key:[password]
Verifying - Enter pass phrase for apache.japan.sun.com.key:[password]
ca-server > ls
apache.japan.sun.com.key


Apache ?????(CA)????? CSR ???
???????? CSR ???????
apache >openssl req -new -key apache.japan.sun.com.key -subj "/emailAddress=webmaster@japan.sun.com/CN=apache.japan.sun.com/OU=Software Practice/O=Sun Microsystems/L=Setagaya/ST=Tokyo/C=JP" -out apache.japan.sun.com.csr
Enter pass phrase for apache.japan.sun.com.key:[password]
apache > pwd
/usr/local/apache2.2.14/conf/ssl.key
apache > ls
apache.japan.sun.com.csr apache.japan.sun.com.key


???(CA) ?????????????
?????????????????????????????
ca-admin > vi openssl.cnf
[ usr_cert ]
basicConstraints=CA:FALSE

???(CA)???????????????????????????????
???????????????????????????????
apache > mv apache.japan.sun.com.signed-server-cert /usr/local/apache2.2.14/conf/ssl.crt/

????????????????
????????????????????????
apache > cat apache.japan.sun.com.signed-server-cert Certificate: Data: Version: 3 (0x2) Serial Number: cd:ea:db:f4:c8:e3:93:93 Signature Algorithm: sha1WithRSAEncryption Issuer: C=JP, ST=Tokyo, O=Sun Microsystems, OU=Software Practice, CN=ca-server.sun.com/emailAddress=caadmin@Sun.COM Validity Not Before: Dec 25 06:58:47 2009 GMT Not After : Dec 25 06:58:47 2010 GMT Subject: C=JP, ST=Tokyo, O=Sun Microsystems, OU=Software Practice, CN=apache.japan.sun.com/emailAddress=webmaster@japan.sun.com Subject Public Key Info: Public Key Algorithm: rsaEncryption RSA Public Key: (2048 bit) Modulus (2048 bit): 00:c9:a1:75:01:3b:44:d8:2e:bb:ff:97:fa:c0:09: 96:d0:ae:9f:92:3a:d8:f0:7c:77:bf:2b:8d:82:14: 3e:14:ec:26:01:ab:68:ca:6a:ab:1a:e6:37:08:89: 2a:73:83:d6:61:7e:0c:37:4c:9c:35:38:e4:20:a8: 25:df:60:cd:7c:ea:17:7c:1d:5b:9f:0b:40:3a:d7: fc:2e:e4:af:66:62:c3:fd:46:a7:31:11:68:96:f4: cb:c3:7d:81:bd:37:b8:53:ef:cc:68:78:51:9d:a2: 48:f5:80:4e:d6:49:3b:8b:0d:db:81:8e:58:fd:2c: bf:47:90:87:6d:40:e6:dd:8c:63:c2:bd:62:d4:aa: 70:4a:b0:91:ec:61:d4:b5:18:ea:b6:2b:47:83:68: 72:f7:01:d6:ad:aa:44:85:34:8a:f6:9d:99:25:57: 02:32:02:02:8d:2c:98:bc:99:cb:ac:ce:a5:b3:27: 46:ca:4c:ee:af:41:14:8f:9c:62:fc:06:20:c3:88: 53:f1:b2:3a:6e:7c:75:4b:8f:da:83:8a:34:d4:29: 40:6d:ad:85:e5:c8:6e:f8:21:8c:7c:ec:3c:00:b6: 07:e1:97:78:48:04:82:80:19:28:28:12:04:9c:b1: f6:4f:38:44:74:41:98:ab:e6:5f:8d:c2:84:a6:a8: 4e:8d Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Basic Constraints: CA:FALSE Netscape Cert Type: SSL Server Netscape Comment: OpenSSL Generated Certificate X509v3 Subject Key Identifier: 1E:1F:C2:95:F6:29:2C:53:54:27:32:66:FF:59:60:FA:E1 :3B:C5:19 X509v3 Authority Key Identifier: keyid:1D:B8:4C:30:CC:A1:35:B2:72:35:A0:8A:CC:FA:F9 :17:9C:C4:D2:4A Signature Algorithm: sha1WithRSAEncryption 2c:49:f2:d9:90:a8:1d:a5:0d:3b:14:1c:ef:1c:b2:5d:35 :66: 2f:9f:ca:b1:56:9f:6d:5f:84:70:66:bf:44:da:6e:c4:c9 :08: 81:d1:f7:6e:d0:6c:35:5d:45:5a:52:1c:6c:5f:d0:24:fa :15: c2:88:a9:64:b7:15:e5:ec:d3:a7:2e:53:90:c0:d1:16:fc :cc: 58:a1:65:08:c9:4c:34:38:e2:57:3f:b6:e8:db:f8:92:62 :c2: fd:59:81:7d:d7:aa:1a:43:20:1b:b7:18:09:97:06:47:d9 :3a: 09:14:bb:63:18:0f:15:81:a2:0d:89:cc:32:f9:57:88:78 :6f: 72:d8-----BEGIN CERTIFICATE-----MIIDvzCCAyigAwIBAgIJAM3q2/TI45OTMA0GCSqGSIb3DQEBBQUAMIGQMQswCQYDVQQGEwJKUDEO MAwGA1UECBMFVG9reW8xGTAXBgNVBAoTEFN1biBNaWNyb3N5c3 RlbXMxGjAYBgNVBAsTEVNvZnR3YXJlIFByYWN0aWNlMRowGAYD VQQDExFjYS1zZXJ2ZXIuc3VuLmNvbTEeMBwGCSqGSIb3DQEJAR YPY2FhZG1pbkBTdW4uQ09NMB4XDTA5MTIyNTA2NTg0N1oXDTEw MTIyNTA2NTg0N1owgZsxCzAJBgNVBAYTAkpQMQ4wDAYDVQQIEw VUb2t5bzEZMBcGA1UEChMQU3VuIE1pY3Jvc3lzdGVtczEaMBgG A1UECxMRU29mdHdhcmUgUHJhY3RpY2UxHTAbBgNVBAMTFGFwYW NoZS5qYXBhbi5zdW4uY29tMSYwJAYJKoZIhvcNAQkBFhd3ZWJt YXN0ZXJAamFwYW4uc3VuLmNvbTCCASIwDQYJKoZIhvcNAQEBBQ ADggEPADCCAQoCggEBAMmhdQE7RNguu/+X+sAJltCun5I62PB8d78rjYIUPhTsJgGraMpqqxrmNwiJKnOD 1mF+DDdMnDU45CCoJd9gzXzqF3wdW58LQDrX/C7kr2Ziw/1GpzERaJb0y8N9gb03uFPvzGh4UZ2iSPWATtZJO4sN24GOWP0s v0eQh21A5t2MY8K9YtSqcEqwkexh1LUY6rYrR4NocvcB1q2qRI U0ivadmSVXAjICAo0smLyZy6zOpbMnRspM7q9BFI+cYvwGIMOI U/GyOm58dUuP2oOKNNQpQG2theXIbvghjHzsPAC2B+GXeEgEgoAZ KCgSBJyx9k84RHRBmKvmX43ChKaoTo0CAwEAAaOBjzCBjDAJBg NVHRMEAjAAMBEGCWCGSAGG+EIBAQQEAwIGQDAsBglghkgBhvhC AQ0EHxYdT3BlblNTTCBHZW5lcmF0ZWQgQ2VydGlmaWNhdGUwHQ YDVR0OBBYEFB4fwpX2KSxTVCcyZv9ZYPrhO8UZMB8GA1UdIwQY MBaAFB24TDDMoTWycjWgisz6+RecxNJKMA0GCSqGSIb3DQEBBQ UAA4GBACxJ8tmQqB2lDTsUHO8csl01Zi+fyrFWn21fhHBmv0Ta bsTJCIHR927QbDVdRVpSHGxf0CT6FcKIqWS3FeXs06cuU5DA0R b8zFihZQjJTDQ44lc/tujb+JJiwv1ZgX3XqhpDIBu3GAmXBkfZOgkUu2MYDxWBog2JzD L5V4h4b3LY-----END CERTIFICATE-----

??????????
-----BEGIN CERTIFICATE-----??? -----END CERTIFICATE----- ???
???? PEM ??????????????
apache > vi apache.japan.sun.com.signed-server-cert.pem-----BEGIN CERTIFICATE-----MIIDvzCCAyigAwIBAgIJAM3q2/TI45OTMA0GCSqGSIb3DQEBBQUAMIGQMQswCQYDVQQGEwJKUDEO MAwGA1UECBMFVG9reW8xGTAXBgNVBAoTEFN1biBNaWNyb3N5c3 RlbXMxGjAYBgNVBAsTEVNvZnR3YXJlIFByYWN0aWNlMRowGAYD VQQDExFjYS1zZXJ2ZXIuc3VuLmNvbTEeMBwGCSqGSIb3DQEJAR YPY2FhZG1pbkBTdW4uQ09NMB4XDTA5MTIyNTA2NTg0N1oXDTEw MTIyNTA2NTg0N1owgZsxCzAJBgNVBAYTAkpQMQ4wDAYDVQQIEw VUb2t5bzEZMBcGA1UEChMQU3VuIE1pY3Jvc3lzdGVtczEaMBgG A1UECxMRU29mdHdhcmUgUHJhY3RpY2UxHTAbBgNVBAMTFGFwYW NoZS5qYXBhbi5zdW4uY29tMSYwJAYJKoZIhvcNAQkBFhd3ZWJt YXN0ZXJAamFwYW4uc3VuLmNvbTCCASIwDQYJKoZIhvcNAQEBBQ ADggEPADCCAQoCggEBAMmhdQE7RNguu/+X+sAJltCun5I62PB8d78rjYIUPhTsJgGraMpqqxrmNwiJKnOD 1mF+DDdMnDU45CCoJd9gzXzqF3wdW58LQDrX/C7kr2Ziw/1GpzERaJb0y8N9gb03uFPvzGh4UZ2iSPWATtZJO4sN24GOWP0s v0eQh21A5t2MY8K9YtSqcEqwkexh1LUY6rYrR4NocvcB1q2qRI U0ivadmSVXAjICAo0smLyZy6zOpbMnRspM7q9BFI+cYvwGIMOI U/GyOm58dUuP2oOKNNQpQG2theXIbvghjHzsPAC2B+GXeEgEgoAZ KCgSBJyx9k84RHRBmKvmX43ChKaoTo0CAwEAAaOBjzCBjDAJBg NVHRMEAjAAMBEGCWCGSAGG+EIBAQQEAwIGQDAsBglghkgBhvhC AQ0EHxYdT3BlblNTTCBHZW5lcmF0ZWQgQ2VydGlmaWNhdGUwHQ YDVR0OBBYEFB4fwpX2KSxTVCcyZv9ZYPrhO8UZMB8GA1UdIwQY MBaAFB24TDDMoTWycjWgisz6+RecxNJKMA0GCSqGSIb3DQEBBQ UAA4GBACxJ8tmQqB2lDTsUHO8csl01Zi+fyrFWn21fhHBmv0Ta bsTJCIHR927QbDVdRVpSHGxf0CT6FcKIqWS3FeXs06cuU5DA0R b8zFihZQjJTDQ44lc/tujb+JJiwv1ZgX3XqhpDIBu3GAmXBkfZOgkUu2MYDxWBog2JzD L5V4h4b3LY-----END CERTIFICATE-----

Apache ? SSL ???
Apache ? SSL ?????????????????????
???(PEM??)?????????????
apache > vi /usr/local/apache2.2.14/conf/extra/httpd-ssl.conf

???????????
SSLCertificateFile "/usr/local/apache2.2.14/conf/ssl.crt/apache.japan.sun.com.signed-server-cert.pem"

SSLCertificateKeyFile "/usr/local/apache2.2.14/conf/ssl.key/sw-103.japan.sun.com.key"

GlassFish ???????????????
??????????????????????? GlassFish ?
??????????Apache ?????????????
dashost > mkdir /tmp/AS_LB
dashost > cp /aslb-9.1.1-b13.jar /tmp/AS_LB/
dashost > cd /tmp/AS_LB/
dashost > jar xvf aslb-9.1.1-b13.jar
SUNWaslb.zip ?????????
SUNWaspx.zip ?????????
BinariesLicense ?????????
dashost > ls
BinariesLicense ****SUNWaslb.zip *******SUNWaspx.zip *******aslb-9.1.1-b13.jar
dashost > mkdir /sun/glassfish-v2.1.1/lib/plugin
dashost > cp *.zip /sun/glassfish-v2.1.1/lib/plugin/
dashost > cd /sun/glassfish-v2.1.1/lib/plugin/
dashost > unzip SUNWaslb.zip
Archive: *SUNWaslb.zip
*creating: lib/
*creating: lib/dtds/
inflating: lib/dtds/sun-loadbalancer_1_0.dtd
inflating: lib/dtds/sun-loadbalancer_1_1.dtd
inflating: lib/dtds/sun-loadbalancer_1_2.dtd
*creating: lib/install/
*creating: lib/install/templates/
inflating: lib/install/templates/loadbalancer.xml.example
inflating: lib/install/templates/ReadMe.UserDefinedLB
inflating: lib/install/templates/roundrobin.c
inflating: lib/install/templates/loadbalancer.h
dashost > unzip SUNWaspx.zip
Archive: *SUNWaspx.zip
inflating: lib/libxerces-c.
soinflating: lib/libsupport.so
inflating: lib/libnsprwrap.so
inflating: lib/libns-httpd40.so
inflating: lib/libnsfc.so
inflating: lib/libnstp.so
inflating: lib/libdirmon4.so
inflating: lib/libnstime.so
inflating: lib/libgetprop.so
inflating: lib/liblibsi18n.so
inflating: lib/libares3.so
inflating: lib/libssldap50.sovinflating: lib/liblibdbm.so
inflating: lib/libldap50.so
inflating: lib/libicuuc.so.2
inflating: lib/libicui18n.so.2
inflating: lib/libicudata.so.2
inflating: lib/libsasl.so
inflating: lib/libprldap50.so
*creating: lib/webserver-plugin/
*creating: lib/webserver-plugin/solaris/
*creating: lib/webserver-plugin/solaris/sjsws/
*creating: lib/webserver-plugin/solaris/sjsws/errorpages/
inflating: lib/webserver-plugin/solaris/sjsws/errorpages/default-error.html
inflating: lib/webserver-plugin/solaris/sjsws/errorpages/sun-http-lberror.html
inflating: lib/webserver-plugin/solaris/sjsws/libpassthrough.so
inflating: lib/webserver-plugin/solaris/sjsws/LBPluginDefault_root.res
inflating: lib/webserver-plugin/solaris/sjsws/LBPlugin_root.res
*creating: lib/webserver-plugin/solaris/apache2/
*creating: lib/webserver-plugin/solaris/apache2/errorpages/
inflating: lib/webserver-plugin/solaris/apache2/errorpages/default-error.html
inflating: lib/webserver-plugin/solaris/apache2/errorpages/sun-http-lberror.html
inflating: lib/webserver-plugin/solaris/apache2/mod_loadbalancer.so
inflating: lib/webserver-plugin/solaris/apache2/secmod.db
inflating: lib/webserver-plugin/solaris/apache2/cert8.db
inflating: lib/webserver-plugin/solaris/apache2/key3.db
inflating: lib/webserver-plugin/solaris/apache2/LBPluginDefault_root.res
inflating: lib/webserver-plugin/solaris/apache2/LBPlugin_root.res
*creating: lib/webserver-plugin/solaris/apache2.2/
*creating: lib/webserver-plugin/solaris/apache2.2/errorpages/
inflating: lib/webserver-plugin/solaris/apache2.2/errorpages/default-error.html
inflating: lib/webserver-plugin/solaris/apache2.2/errorpages/sun-http-lberror.html
inflating: lib/webserver-plugin/solaris/apache2.2/mod_loadbalancer.so
inflating: lib/webserver-plugin/solaris/apache2.2/secmod.db
inflating: lib/webserver-plugin/solaris/apache2.2/cert8.db
inflating: lib/webserver-plugin/solaris/apache2.2/key3.db
inflating: lib/webserver-plugin/solaris/apache2.2/LBPluginDefault_root.res
inflating: lib/webserver-plugin/solaris/apache2.2/LBPlugin_root.res

???????????????????????????????
dashost > mv /sun/glassfish-v2.1.1/lib/plugin/lib/install/templates/loadbalancer.xml.example /sun/glassfish-v2.1.1/lib/plugin/lib/install/templates/loadbalancer.xml

Apache ?? LB ??????????????????????
apache > mkdir /tmp/AS_LB
apache > cp /aslb-9.1.1-b13.jar /tmp/AS_LB/
apache > cd /tmp/AS_LB/
apache > jar xvf aslb-9.1.1-b13.jar
SUNWaslb.zip ?????????
SUNWaspx.zip ?????????
BinariesLicense ?????????
apache > ls
BinariesLicense ****SUNWaslb.zip *******SUNWaspx.zip *******aslb-9.1.1-b13.jar
apache > unzip SUNWaslb.zip
apache > unzip SUNWaspx.zip

apache > mkdir /usr/local/apache2.2.14/modules/resource
apache > mkdir /usr/local/apache2.2.14/modules/errorpage
apache > cp /tmp/AS_LB/lib/webserver-plugin/solaris/apache2.2/LBPluginDefault_root.res /usr/local/apache2.2.14/modules/resource/
apache > cp /tmp/AS_LB//lib/webserver-plugin/solaris/apache2/LBPlugin_root.res /usr/local/apache2.2.14/modules/resource/
apache > cp /tmp/AS_LB/lib/webserver-plugin/solaris/apache2.2/mod_loadbalancer.so /usr/local/apache2.2.14/modules/
apache > cp /tmp/AS_LB/lib/lib*.so* /usr/local/apache2.2.14/modules/
apache > cp /tmp/AS_LB/lib/webserver-plugin/solaris/apache2.2/errorpages/* /usr/local/apache2.2.14/modules/errorpage/

apache > cp /tmp/AS_LB/lib/plugin/lib/install/templates/loadbalancer.xml.example /usr/local/apache2.2.14/conf/loadbalancer.xml
apache > cp /tmp/AS_LB/lib/plugin/lib/dtds/sun* /usr/local/apache2.2.14/conf/

Apache ????DB ????????
??????????????????????????????????????
apache > mkdir /usr/local/apache2.2.14/sec_db_files
apache > cp /tmp/AS_LB/lib/webserver-plugin/solaris/apache2.2/*.db /usr/local/apache2.2.14/sec_db_files/

??????????????????????????
apache > chown -R daemon /usr/local/apache2.2.14/conf/

Apache ????
??? Aapche ??????????Apache ???????????
(??????????????????????? openssl ?????
????????????)
apache > /usr/local/apache2.2.14/bin/apachectl start
Apache/2.2.14 mod_ssl/2.2.14 (Pass Phrase Dialog)
Some of your private key files are encrypted for security reasons.
In order to read them you have to provide the pass phrases.

Server apache.japan.sun.com:443 (RSA)
Enter pass phrase: [password]

OK: Pass Phrase Dialog successful.

???(CA) ???? GlassFish ??????
Apache ?????????????????
Apache ??????????????????
??????????????????????
???????(CA)?????GlassFish ???????????

# cat /usr/local/ssl/demoCA/cacert.pemCertificate:**Data:******Version: 3 ?0x2?******Serial Number:**********cd:ea:db:f4:c8:e3:93:84******Sign ature Algorithm: sha1WithRSAEncryption******Issuer: C=JP, ST=Tokyo, O=Sun Microsystems, OU=Software Practice, CN=ca-server.sun.com/emailAddress=caadmin@Sun.COM******Validity******** **Not Before: Nov *9 04:40:09 2009 GMT**********Not After : Nov *8 04:40:09 2012 GMT******Subject: C=JP, ST=Tokyo, O=Sun Microsystems, OU=Software Practice, CN=ca-server.sun.com/emailAddress=caadmin@Sun.COM******Subject Public Key Info:**********Public Key Algorithm: rsaEncryption**********RSA Public Key: ?1024 bit?**************Modulus ?1024 bit?:******************00:b6:ee:98:16:65:fb:da:94: 48:67:71:00:3b:66:******************81:6f:09:46:5a :e2:46:6c:0e:80:ea:18:ca:b8:9f:******************6 b:26:73:ee:da:36:48:1d:3d:fa:09:3b:6a:5a:b3:****** ************10:5c:f5:bc:50:36:8d:46:6e:e1:7f:2f:79 :63:0f:******************fc:f2:c5:be:68:f0:3d:55:e d:49:b9:37:1d:e4:56:******************a2:c8:a7:6f: 48:1e:e3:db:17:d7:f3:65:18:e7:bd:***************** *d3:01:90:cf:17:22:df:43:ba:57:c1:65:1e:8d:5b:**** **************5a:df:69:fd:24:97:67:32:c0:b5:29:fd: 63:90:2e:******************d4:69:69:18:73:b8:80:be :21**************Exponent: 65537 ?0x10001?******X509v3 extensions:**********X509v3 Subject Key Identifier:**************1D:B8:4C:30:CC:A1:35:B2:7 2:35:A0:8A:CC:FA:F9:17:9C:C4:D2:4A**********X509v3 Authority Key Identifier:**************keyid:1D:B8:4C:30:CC:A1:3 5:B2:72:35:A0:8A:CC:FA:F9:17:9C:C4:D2:4A********** ****DirName:/C=JP/ST=Tokyo/O=Sun Microsystems/OU=Software Practice/CN=ca-server.sun.com/emailAddress=caadmin@Sun.COM**************serial:C D:EA:DB:F4:C8:E3:93:84**********X509v3 Basic Constraints:**************CA:TRUE**Signature Algorithm: sha1WithRSAEncryption******32:8b:2a:63:52:72:41:30 :cc:b2:eb:5e:59:60:cd:e8:39:46:******19:dd:48:30:2 c:e9:e8:b3:fa:c6:18:2a:2f:f4:22:1c:c6:22:******c7: f0:f7:17:73:72:17:45:88:11:14:3a:88:35:18:52:a9:f0 :******eb:8e:de:18:3f:d7:33:e1:09:84:6c:da:b2:f7:0 3:f1:ae:37:******b8:1c:f6:19:53:e0:0a:12:b3:7b:5a: dd:39:f1:d2:85:49:e0:******3e:5a:9d:89:b0:38:b0:76 :80:11:cb:83:b0:fe:3f:ed:92:15:******68:3a:6d:3b:1 3:77:cc:4d:b1:1d:4b:8d:9d:b6:41:e5:06:07:******52: af-----BEGIN CERTIFICATE-----MIIDmTCCAwKgAwIBAgIJAM3q2/TI45OEMA0GCSqGSIb3DQEBBQUAMIGQMQswCQYDVQQGEwJKUDEO MAwGA1UECBMFVG9reW8xGTAXBgNVBAoTEFN1biBNaWNyb3N5c3 RlbXMxGjAYBgNVBAsTEVNvZnR3YXJlIFByYWN0aWNlMRowGAYD VQQDExFjYS1zZXJ2ZXIuc3VuLmNvbTEeMBwGCSqGSIb3DQEJAR YPY2FhZG1pbkBTdW4uQ09NMB4XDTA5MTEwOTA0NDAwOVoXDTEy MTEwODA0NDAwOVowgZAxCzAJBgNVBAYTAkpQMQ4wDAYDVQQIEw VUb2t5bzEZMBcGA1UEChMQU3VuIE1pY3Jvc3lzdGVtczEaMBgG A1UECxMRU29mdHdhcmUgUHJhY3RpY2UxGjAYBgNVBAMTEWNhLX NlcnZlci5zdW4uY29tMR4wHAYJKoZIhvcNAQkBFg9jYWFkbWlu QFN1bi5DT00wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAL bumBZl+9qUSGdxADtmgW8JRlriRmwOgOoYyrifayZz7to2SB09 +gk7alqzEFz1vFA2jUZu4X8veWMP/PLFvmjwPVXtSbk3HeRWosinb0ge49sX1/NlGOe90wGQzxci30O6V8FlHo1bWt9p/SSXZzLAtSn9Y5Au1GlpGHO4gL4hAgMBAAGjgfgwgfUwHQYDVR0 OBBYEFB24TDDMoTWycjWgisz6+RecxNJKMIHFBgNVHSMEgb0wg bqAFB24TDDMoTWycjWgisz6+RecxNJKoYGWpIGTMIGQMQswCQY DVQQGEwJKUDEOMAwGA1UECBMFVG9reW8xGTAXBgNVBAoTEFN1b iBNaWNyb3N5c3RlbXMxGjAYBgNVBAsTEVNvZnR3YXJlIFByYWN 0aWNlMRowGAYDVQQDExFjYS1zZXJ2ZXIuc3VuLmNvbTEeMBwGC SqGSIb3DQEJARYPY2FhZG1pbkBTdW4uQ09NggkAzerb9Mjjk4Q wDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQAyiypjUnJBMMyy615ZYM3oOUY Z3UgwLOnos/rGGCov9CIcxiLH8PcXc3IXRYgRFDqINRhSqfDrjt4YP9cz4QmE bNqy9wPxrje4HPYZU+AKErN7Wt058dKFSeA+Wp2JsDiwdoARy4 Ow/j/tkhVoOm07E3fMTbEdS42dtkHlBgdSrw==-----END CERTIFICATE-----

PEM ?????????????????????(DAS)????
dashost > vi /tmp/cacert.pem-----BEGIN CERTIFICATE-----MIIDmTCCAwKgAwIBAgIJAM3q2/TI45OEMA0GCSqGSIb3DQEBBQUAMIGQMQswCQYDVQQGEwJKUDEO MAwGA1UECBMFVG9reW8xGTAXBgNVBAoTEFN1biBNaWNyb3N5c3 RlbXMxGjAYBgNVBAsTEVNvZnR3YXJlIFByYWN0aWNlMRowGAYD VQQDExFjYS1zZXJ2ZXIuc3VuLmNvbTEeMBwGCSqGSIb3DQEJAR YPY2FhZG1pbkBTdW4uQ09NMB4XDTA5MTEwOTA0NDAwOVoXDTEy MTEwODA0NDAwOVowgZAxCzAJBgNVBAYTAkpQMQ4wDAYDVQQIEw VUb2t5bzEZMBcGA1UEChMQU3VuIE1pY3Jvc3lzdGVtczEaMBgG A1UECxMRU29mdHdhcmUgUHJhY3RpY2UxGjAYBgNVBAMTEWNhLX NlcnZlci5zdW4uY29tMR4wHAYJKoZIhvcNAQkBFg9jYWFkbWlu QFN1bi5DT00wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAL bumBZl+9qUSGdxADtmgW8JRlriRmwOgOoYyrifayZz7to2SB09 +gk7alqzEFz1vFA2jUZu4X8veWMP/PLFvmjwPVXtSbk3HeRWosinb0ge49sX1/NlGOe90wGQzxci30O6V8FlHo1bWt9p/SSXZzLAtSn9Y5Au1GlpGHO4gL4hAgMBAAGjgfgwgfUwHQYDVR0 OBBYEFB24TDDMoTWycjWgisz6+RecxNJKMIHFBgNVHSMEgb0wg bqAFB24TDDMoTWycjWgisz6+RecxNJKoYGWpIGTMIGQMQswCQY DVQQGEwJKUDEOMAwGA1UECBMFVG9reW8xGTAXBgNVBAoTEFN1b iBNaWNyb3N5c3RlbXMxGjAYBgNVBAsTEVNvZnR3YXJlIFByYWN 0aWNlMRowGAYDVQQDExFjYS1zZXJ2ZXIuc3VuLmNvbTEeMBwGC SqGSIb3DQEJARYPY2FhZG1pbkBTdW4uQ09NggkAzerb9Mjjk4Q wDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQAyiypjUnJBMMyy615ZYM3oOUY Z3UgwLOnos/rGGCov9CIcxiLH8PcXc3IXRYgRFDqINRhSqfDrjt4YP9cz4QmE bNqy9wPxrje4HPYZU+AKErN7Wt058dKFSeA+Wp2JsDiwdoARy4 Ow/j/tkhVoOm07E3fMTbEdS42dtkHlBgdSrw==-----END CERTIFICATE-----


???(CA) ????? cacerts.jks ? keystore.jks ??????
PEM ??????????? GlassFish ??????????????
?????????????????
dashost > cd domains/clusterDomain/config/
dashost > keytool -import -trustcacerts -v -keystore cacerts.jks
-alias PrivateCACert -file /tmp/cacert.pem

????????????????????: [changeit]
???: EMAILADDRESS=caadmin@Sun.COM, CN=ca-server.sun.com, OU=Software Practice, O=Sun Microsystems, ST=Tokyo, C=JP???: EMAILADDRESS=caadmin@Sun.COM, CN=ca-server.sun.com, OU=Software Practice, O=Sun Microsystems, ST=Tokyo, C=JP??????: cdeadbf4c8e39384????????: Mon Nov 09 13:40:09 JST 2009 ???: Thu Nov 08 13:40:09 JST 2012?????????????: MD5: 7C:21:2B:4A:DF:A4:5D:BF:78:1D:56:22:54:3F:4E:48 SHA1: 00:3C:55:1E:34:60:FC:77:24:38:7E:64:39:C4:38:48:79 :92:2F:31 ?????????: SHA1withRSA ?????: 3??: #1: ObjectId: 2.5.29.14 Criticality=falseSubjectKeyIdentifier [KeyIdentifier [0000: 1D B8 4C 30 CC A1 35 B2 72 35 A0 8A CC FA F9 17 ..L0..5.r5......0010: 9C C4 D2 4A ...J]]#2: ObjectId: 2.5.29.19 Criticality=falseBasicConstraints:[ CA:true PathLen:2147483647]#3: ObjectId: 2.5.29.35 Criticality=falseAuthorityKeyIdentifier [KeyIdentifier [0000: 1D B8 4C 30 CC A1 35 B2 72 35 A0 8A CC FA F9 17 ..L0..5.r5......0010: 9C C4 D2 4A ...J][EMAILADDRESS=caadmin@Sun.COM, CN=ca-server.sun.com, OU=Software Practice, O=Sun Microsystems, ST=Tokyo, C=JP]SerialNumber: [ cdeadbf4 c8e39384]]????????????? [no]: yes??????????????????[cacerts.jks ????]dashost > keytool -import -trustcacerts -v -keystore keystore.jks
-alias PrivateCACert -file /tmp/cacert.pem

????????????????????: [changeit]
???: EMAILADDRESS=caadmin@Sun.COM, CN=ca-server.sun.com, OU=Software Practice, O=Sun Microsystems, ST=Tokyo, C=JP???: EMAILADDRESS=caadmin@Sun.COM, CN=ca-server.sun.com, OU=Software Practice, O=Sun Microsystems, ST=Tokyo, C=JP??????: cdeadbf4c8e39384????????: Mon Nov 09 13:40:09 JST 2009 ???: Thu Nov 08 13:40:09 JST 2012?????????????: MD5: 7C:21:2B:4A:DF:A4:5D:BF:78:1D:56:22:54:3F:4E:48 SHA1: 00:3C:55:1E:34:60:FC:77:24:38:7E:64:39:C4:38:48:79 :92:2F:31 ?????????: SHA1withRSA ?????: 3??: #1: ObjectId: 2.5.29.14 Criticality=falseSubjectKeyIdentifier [KeyIdentifier [0000: 1D B8 4C 30 CC A1 35 B2 72 35 A0 8A CC FA F9 17 ..L0..5.r5......0010: 9C C4 D2 4A ...J]]#2: ObjectId: 2.5.29.19 Criticality=falseBasicConstraints:[ CA:true PathLen:2147483647]#3: ObjectId: 2.5.29.35 Criticality=falseAuthorityKeyIdentifier [KeyIdentifier [0000: 1D B8 4C 30 CC A1 35 B2 72 35 A0 8A CC FA F9 17 ..L0..5.r5......0010: 9C C4 D2 4A ...J][EMAILADDRESS=caadmin@Sun.COM, CN=ca-server.sun.com, OU=Software Practice, O=Sun Microsystems, ST=Tokyo, C=JP]SerialNumber: [ cdeadbf4 c8e39384]]????????????? [no]: yes??????????????????[keystore.jks ????]dashost >

???(CA) ?????????????
??????(CA)????????????????????????
keytool ??????????
dashost > keytool -list -v -alias PrivateCACert -keystore cacerts.jks
????????????????????:
??: PrivateCACert???: 2009/12/25????????: trustedCertEntry???: EMAILADDRESS=caadmin@Sun.COM, CN=ca-server.sun.com, OU=Software Practice, O=Sun Microsystems, ST=Tokyo, C=JP???: EMAILADDRESS=caadmin@Sun.COM, CN=ca-server.sun.com, OU=Software Practice, O=Sun Microsystems, ST=Tokyo, C=JP??????: cdeadbf4c8e39384????????: Mon Nov 09 13:40:09 JST 2009 ???: Thu Nov 08 13:40:09 JST 2012?????????????: MD5: 7C:21:2B:4A:DF:A4:5D:BF:78:1D:56:22:54:3F:4E:48 SHA1: 00:3C:55:1E:34:60:FC:77:24:38:7E:64:39:C4:38:48:79 :92:2F:31 ?????????: SHA1withRSA ?????: 3??: #1: ObjectId: 2.5.29.14 Criticality=falseSubjectKeyIdentifier [KeyIdentifier [0000: 1D B8 4C 30 CC A1 35 B2 72 35 A0 8A CC FA F9 17 ..L0..5.r5......0010: 9C C4 D2 4A ...J]]#2: ObjectId: 2.5.29.19 Criticality=falseBasicConstraints:[ CA:true PathLen:2147483647]#3: ObjectId: 2.5.29.35 Criticality=falseAuthorityKeyIdentifier [KeyIdentifier [0000: 1D B8 4C 30 CC A1 35 B2 72 35 A0 8A CC FA F9 17 ..L0..5.r5......0010: 9C C4 D2 4A ...J][EMAILADDRESS=caadmin@Sun.COM, CN=ca-server.sun.com, OU=Software Practice, O=Sun Microsystems, ST=Tokyo, C=JP]SerialNumber: [ cdeadbf4 c8e39384]]dashost > keytool -list -v -alias PrivateCACert
-keystore keystore.jks

????????????????????:
??: PrivateCACert???: 2009/12/25????????: trustedCertEntry???: EMAILADDRESS=caadmin@Sun.COM, CN=ca-server.sun.com, OU=Software Practice, O=Sun Microsystems, ST=Tokyo, C=JP???: EMAILADDRESS=caadmin@Sun.COM, CN=ca-server.sun.com, OU=Software Practice, O=Sun Microsystems, ST=Tokyo, C=JP??????: cdeadbf4c8e39384????????: Mon Nov 09 13:40:09 JST 2009 ???: Thu Nov 08 13:40:09 JST 2012?????????????: MD5: 7C:21:2B:4A:DF:A4:5D:BF:78:1D:56:22:54:3F:4E:48 SHA1: 00:3C:55:1E:34:60:FC:77:24:38:7E:64:39:C4:38:48:79 :92:2F:31 ?????????: SHA1withRSA ?????: 3??: #1: ObjectId: 2.5.29.14 Criticality=falseSubjectKeyIdentifier [KeyIdentifier [0000: 1D B8 4C 30 CC A1 35 B2 72 35 A0 8A CC FA F9 17 ..L0..5.r5......0010: 9C C4 D2 4A ...J]]#2: ObjectId: 2.5.29.19 Criticality=falseBasicConstraints:[ CA:true PathLen:2147483647]#3: ObjectId: 2.5.29.35 Criticality=falseAuthorityKeyIdentifier [KeyIdentifier [0000: 1D B8 4C 30 CC A1 35 B2 72 35 A0 8A CC FA F9 17 ..L0..5.r5......0010: 9C C4 D2 4A ...J][EMAILADDRESS=caadmin@Sun.COM, CN=ca-server.sun.com, OU=Software Practice, O=Sun Microsystems, ST=Tokyo, C=JP]SerialNumber: [ cdeadbf4 c8e39384]]

??? Apache ? GlassFish ????????????GlassFish ??????
??? GlassFish ?????????????????

???????
dashost > asadmin start-domain clusterDomain
???? clusterDomain ?????????????????
???????????? /export/home/appserv/domains/clusterDomain/logs/server.log ???
??? /export/home/appserv/domains/clusterDomain/logs/server.log ????????????
???? clusterDomain ????????
???? [clusterDomain] ?????? [Sun GlassFish Enterprise Server v2.1.1 ((v2.1 Patch06)(9.1_02 Patch12)) (build b31g-fcs)] ???????????? [/export/home/appserv/domains] ??????
???????? [http://localhost:5048] ????????
"asadmin" ??????????? [5048] ???????
????? Web ??????????? URL ???????:
[http://localhost:5080 https://localhost:5081 ]?
?? web-contexts ???????:
[/web1 /__wstx-services ]?
??? JMX ?????? (JConsole ??) ??????????? JMXServiceURL:
[service:jmx:rmi:///jndi/rmi://dashost:5086/jmxrmi] ????????
??????????????????????????:
[5080 5081 5048 5037 5038 5039 5086 ]?
??????????????????????????????????????????????????

????????????
???????????????????????????

nodeagent1 ??????
nodeagent1 > asadmin create-node-agent nodeagent1
???? create-node-agent ????????????
nodeagent1 > asadmin start-node-agent nodeagent1
??? /export/home/appserv/nodeagents/nodeagent1/agent/logs/server.log ????????????
??????????? /export/home/appserv/nodeagents/nodeagent1/agent/logs/server.log ??????????
???? start-node-agent ????????????

nodeagent2 ??????
nodeagent2 > asadmin create-node-agent nodeagent2
???? create-node-agent ????????????
nodeagent2 > asadmin start-node-agent nodeagent2
??? /export/home/appserv/nodeagents/nodeagent2/agent/logs/server.log ????????????
??????????? /export/home/appserv/nodeagents/nodeagent2/agent/logs/server.log ??????????
???? start-node-agent ????????????

??????????????
??????????????????????????????
?????????????
dashost > asadmin create-cluster cluster1
???? create-cluster ????????????
dashost > asadmin create-instance --nodeagent nodeagent1 --cluster cluster1 instance1
???? create-instance ????????????
dashost > asadmin create-instance --nodeagent nodeagent2 --cluster cluster1 instance2
???? create-instance ???????????

???????
???????????????
dashost > asadmin start-cluster cluster1
?????????????? instance1 ???????????
?????????????? instance2 ???????????
???? start-cluster ????????????

?????????????????
??????????????????????
dashost > asadmin deploy --target cluster1 --availabilityenabled=true /sun/glassfish-v2.1.1/samples/quickstart/clusterjsp/clusterjsp.ear
???? deploy ????????????

?????????????????????????????
????????????????????????????????
??????????????
dashost > asadmin create-http-lb-config --target cluster1 lb-config
???? create-http-lb-config ????????????
dashost > asadmin enable-http-lb-server cluster1
???? enable-http-lb-server ????????????
dashost > asadmin enable-http-lb-application --name clusterjsp cluster1
???? enable-http-lb-application ????????????
dashost > asadmin create-http-health-checker --interval 10 --config lb-config cluster1
???? create-http-health-checker ????????????
dashost > asadmin export-http-lb-config --config lb-config /tmp/loadbalancer.xml
????????????: /tmp/loadbalancer.xml
???? export-http-lb-config ????????????

?????????loadbalancer.xml????? Apache ?????????
?????????????????????????
apache > cp /tmp/loadbalancer.xml /usr/local/apache2.2.14/conf/loadbalancer.xml

??????????????? Web Server ??????? loadbalancer.xml ?
????????????????????????????????
autoapplyenabled=true??
dashost > asadmin create-http-lb --target cluster1 --autoapplyenabled=true --devicehost apache.japan.sun.com --deviceport 443 lb-config
???? create-http-lb ????????????
dashost > asadmin apply-http-lb-changes lb-config
???? apply-http-lb-changes ????????????
dashost >

????????????apply-http-lb-changes ???????
Apache ? loadbalancer.xml ??????????????
apache > cat /usr/local/apache2.2.14/conf/loadbalancer.xml



















apache >

?????
?????? Apache ????????????????????
????? Apache ???????????
http://INSTALL_MACHINE/clusterjsp/

Served From Server instance: instance1


?????????"Served From Server instance"??????
???????????????????????????????
????????????????

Enter session attribute data:
??????????????????

??????????????????????????????
dashost > asadmin stop-instance instance1
???? stop-instance ????????????

???????????????[Reload Page]????????????
"Served From Server instance:"?????? instance1??instance2?
?????????????????????????????????????
????????

?????????????????????2?????????
????????????????????????????????????
??????
dashost > asadmin set "cluster1.server-ref.instance2.lb-enabled=false"
cluster1.server-ref.instance2.lb-enabled = false
dashost > asadmin apply-http-lb-changes lb-config
???? apply-http-lb-changes ????????????

?????????????loadbalancer.xml ???????2?????
???????????? (enabled ? false)
apache > cat loadbalancer.xml|grep nodeagent2


??????????????????????????????????
dashost > asadmin set "cluster1.server-ref.instance2.lb-enabled=true"
cluster1.server-ref.instance2.lb-enabled = true
dashost > asadmin apply-http-lb-changes lb-config
???? apply-http-lb-changes ????????????

????loadbalancer.xml ???????2?????????? enabled ? true ????????apache > cat loadbalancer.xml | grep nodeagent2


??????????????????????????
?????????????????????????
???????????????????????
???????apply-http-lb.-changes ???????????
???????????
dashost > asadmin create-instance --nodeagent nodeagent1 --cluster cluster1 instance3
HTTP_LISTENER_PORT ????? 38,081 ???????
HTTP_SSL_LISTENER_PORT ????? 38,182 ???????
IIOP_SSL_LISTENER_PORT ????? 33,821 ???????
JMS_PROVIDER_PORT ????? 37,677 ???????
IIOP_LISTENER_PORT ????? 33,701 ???????
JMX_SYSTEM_CONNECTOR_PORT ????? 38,687 ???????
IIOP_SSL_MUTUALAUTH_PORT ????? 33,921 ???????
???? create-instance ????????????
dashost > asadmin create-instance --nodeagent nodeagent2 --cluster cluster1 instance4
HTTP_LISTENER_PORT ????? 38,081 ???????
HTTP_SSL_LISTENER_PORT ????? 38,182 ???????
IIOP_SSL_LISTENER_PORT ????? 33,821 ???????
JMS_PROVIDER_PORT ????? 37,677 ???????
IIOP_LISTENER_PORT ????? 33,701 ???????
JMX_SYSTEM_CONNECTOR_PORT ????? 38,687 ???????
IIOP_SSL_MUTUALAUTH_PORT ????? 33,921 ???????
???? create-instance ????????????
dashost > asadmin start-instance instance3
???? start-instance ????????????
dashost > asadmin start-instance instance4
???? start-instance ????????????
dasho

More...