{"id":3341,"date":"2011-10-28T12:51:53","date_gmt":"2011-10-28T17:51:53","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=3341"},"modified":"2011-10-28T12:51:53","modified_gmt":"2011-10-28T17:51:53","slug":"weblogic-11g-clustering-setting-up-weblogic-clusters","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=3341","title":{"rendered":"WebLogic 11g Clustering: Setting up WebLogic Clusters"},"content":{"rendered":"<span id=\"Planning\"><h2>Planning<\/h2><\/span>\n<p>* Determine cluster architecture: basic or multi-tier, load balancer or proxy, firewalls.<br \/>\n* Consider network and security topologies.<br \/>\n* Choose machines.<br \/>\n* Identify names and addresses.<br \/>\n&#8211; Choose DNS names over IP addresses.<br \/>\n&#8211; Choose blank rather than Localhost (choose localhost limits access from localhost only).<br \/>\n* Assign names to WebLogic server resources.<br \/>\n* Identify Admin Server address and port.<br \/>\n* Identify Managed server addresses and listen ports.<br \/>\n* Identify multicast address and port.<br \/>\n&#8211; A multicast address is between 224.0.0.0 and 239.255.255.2555<br \/>\n&#8211; Defaults to 239.192.0.0<br \/>\n&#8211; Do not use multicast address ending with 0.0.1<br \/>\n&#8211; Mutlicast address is used to announce services and heartbeats.<br \/>\n&#8211; If use firewalls between clusters, each cluster needs its own multicast address.<br \/>\n* Cluster address<br \/>\n&#8211; Used in entity and stateless beans to construct the host name portion of request URLs.<br \/>\n&#8211; Let WebLogic server dynamically generates the cluster address for each new request.<\/p>\n<span id=\"Cluster_Implementation_Procedures\"><h2>Cluster Implementation Procedures<\/h2><\/span>\n<p>* Install WebLogic Server:<br \/>\n&#8211; Install same version of WebLogic Server on each machine.<br \/>\n&#8211; Each machine:<br \/>\n~ Must have dedicated IP addresses.<br \/>\n~ Must be accessible to clients.<br \/>\n~ Must be located on the same LAN and reachable via IP multicast.<br \/>\n~ Do not use shared file system to run multiple server instance (IO contention).<br \/>\n* Create a clustered domain.<br \/>\n&#8211; Use Configuration Wizard<br \/>\n&#8211; Use Admin Console<br \/>\n* Start cluster.<br \/>\n* Configure node manager.<br \/>\n* Configure load balancing method for EJBs and RMIs.<br \/>\n&#8211; Defaults to round robin.<br \/>\n&#8211; Change via Admin Console on cluster&#8217;s <strong>Configuration > General > Default Load Algorithm<\/strong> tab.<br \/>\n* Specify a timeout value for RMIs.<br \/>\n&#8211; You can enable a timeout option when making calls to the ReplicationManager by setting the ReplicationTimeoutEnabled in the ClusterMBean to true.<br \/>\n&#8211; The timeout value is equal to the multicast heartbeat timeout.<br \/>\n&#8211; ReplicationManager timeout cannot be changed.<br \/>\n* Configure server affinity for distributed JMS destinations.<br \/>\n* If using load balancer, configure load balancer that support passive cookie persistence.<br \/>\n* If using proxy plug-ins, configure proxy plug-ins.<br \/>\n&#8211; Setup HttpClusterServlet.<br \/>\n* Configure replication groups.<br \/>\n* Configure migratable targets for pinned services.<br \/>\n* Configure clustered JDBC.<br \/>\n* Package applications for deployment.<br \/>\n* Deploy applications.<br \/>\n&#8211; use cluster name as deployment target.<br \/>\n* Deploying, Activating, and Migrating Migratable Services<br \/>\n* Configure In-Memory HTTP Replication<br \/>\n&#8211; Set in domain_directory\/applications\/application_directory\/WEB-INF\/weblogic.xml file:<\/p>\n<pre lang=\"xml\">\r\n<session-descriptor>\r\n<persistent-store-type>replicated<\/persistent-store-type> \r\n<\/session-descriptor>\r\n<\/pre>\n<p>* Additional Configuration Topics<br \/>\n&#8211; Configure IP sockets on server&#8217;s Tuning tab.<br \/>\n&#8211; If use multicat:<br \/>\n~ Configure Multicast Time-To-Live (TTL) which sets the number of network hops a multicast message makes before the packet can be discarded.<br \/>\n~ Configure Multicast Buffer Size.<br \/>\n~ Configure Multicast Data Encryption.<br \/>\n&#8211; Configure Machine Names.<br \/>\n&#8211; Configuration Notes for Multi-Tier Architecture.<br \/>\n&#8211; Enable URL Rewriting.<\/p>\n<span id=\"References\"><h2>References<\/h2><\/span>\n<p><a href=\"http:\/\/download.oracle.com\/docs\/cd\/E17904_01\/web.1111\/e13709\/setup.htm\">Setting up WebLogic Clusters<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Planning * Determine cluster architecture: basic or multi-tier, load balancer or proxy, firewalls. * Consider network and security topologies. * Choose machines. * Identify names and addresses. &#8211; Choose DNS names over IP addresses. &#8211; Choose blank rather than Localhost &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=3341\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[104],"tags":[],"class_list":["post-3341","post","type-post","status-publish","format-standard","hentry","category-weblogic11g"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-RT","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3341"}],"version-history":[{"count":2,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3341\/revisions"}],"predecessor-version":[{"id":3674,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3341\/revisions\/3674"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}