Help on consistency + Weblogic Cluster configuration

Hello

I am new to consistency. I explore the consistency to fill one of my condition.

My needs: I have an application deployed on a clustered server logical Web environment. I need to cache data specific to the application (java card) and that should be available to all nodes in the cluster WLS. Application that are cached, data can be updated from any of the node in the cluster WLS and updated the application cache data should be available for all the nodes in the cluster WLS. The nodes in the cluster of WLS resides in different machines from different places.

Can I use coherence as a services of caching for my requirement?

If Yes, do I need to start a server cache consistency on each node of the cluster WLS?

If so, do I need to specially configure these servers cache, so that these cache servers would communicate each other in case of updates of data in the cache?

It will be very helpful if you could also provide sample configurations to achieve the above scenarios.

Thanks in advance!

Kind regards
Srinivas M

You can start a cache server in the network by using for example

# home directory
BEA_HOME="/home/oracle/bea"
export BEA_HOME
# java vendor (for example Oracle or Sun)
JAVA_VENDOR="Oracle"
export JAVA_VENDOR
# cache server klasse
CACHE_SERVER_CLASS="com.tangosol.net.DefaultCacheServer"
export CACHE_SERVER_CLASS
# coherence options
COHERENCE_OPTIONS="-Dtangosol.coherence.management=all"
export COHERENCE_OPTIONS
COHERENCE_OPTIONS="${COHERENCE_OPTIONS} -Dtangosol.coherence.management.remote=true"
#COHERENCE_OPTIONS="${COHERENCE_OPTIONS} -Dtangosol.coherence.cacheconfig=WEB-INF/classes/session-cache-config.xml"
#COHERENCE_OPTIONS="${COHERENCE_OPTIONS} -Dtangosol.coherence.session.localstorage=true"

WL_HOME="${BEA_HOME}/wlserver_10.3"
export WL_HOME
BEA_JAVA_HOME="${BEA_HOME}/jrockit_160_05_R27.6.2-20"
export BEA_JAVA_HOME
SUN_JAVA_HOME="${BEA_HOME}/jdk160_11"
export SUN_JAVA_HOME

if [ "${JAVA_VENDOR}" = "Oracle" ]; then
     JAVA_HOME="${BEA_JAVA_HOME}"
     export JAVA_HOME
     MEM_ARGS="-jrockit -Xms512m -Xmx512m -Xss128k -Xgcprio:throughput"
     export MEM_ARGS
fi

if [ "${JAVA_VENDOR}" = "Sun" ]; then
     JAVA_HOME="${SUN_JAVA_HOME}"
     export JAVA_HOME
     MEM_ARGS="-server -Xmx512m -Xms512m -Xmn256m -Xss128k -XX:PermSize=128m -XX:MaxPermSize=128m -XX:+UseParallelGC -XX:ParallelGCThreads=2 -XX:+UseParallelOldGC -XX:+AggressiveOpts -XX:+UseBiasedLocking"
     export MEM_ARGS
fi

# classpath for the cache server
CLASSPATH="${WL_HOME}/coherence/coherence.jar"
export CLASSPATH

# start the cache server
${JAVA_HOME}/bin/java ${MEM_ARGS} ${COHERENCE_OPTIONS} ${CACHE_SERVER_CLASS}

-Dtangosol.coherence.management = all option gives made you some useful information about what the cache by using for example the browser mbean provided by jconsole or jrockit mission control.

You can create an application in which you create a cache, below is an example of a servlet

import com.tangosol.net.CacheFactory;
import com.tangosol.net.NamedCache;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Random;

public class TestServlet extends HttpServlet {

    private NamedCache movies;

    public void init() throws ServletException {
        movies = CacheFactory.getCache("repl-movies");
        movies.put(10, new Movie(10, "Rear Window", "Alfred Hitchcock"));
        movies.put(20, new Movie(20, "Vertigo", "Alfred Hitchcock"));
        movies.put(30, new Movie(30, "Double Indemnity", "Billy Wilder"));
        movies.put(40, new Movie(40, "Touch of Evil", "Orson Welles"));
    }

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        Integer[] integers = {10, 20, 30, 40};
        Random random = new Random();
        while (true) {
            movies.get(integers[random.nextInt(4)]);
        }
    }
}

Package the servlet into such a WAR file and deploy it in a WebLogic cluster configured.

By accessing the servlet on the different nodes in the cluster a new cache is created and added to the
already running DefaultServer.

The most difficult part is to configure your cache. As you can see in servlet initialization we EU something like CacheFactory.getCache ("repl-movies");
Lack of consistency with some configurations of cache example that are contained in the coherence.jar (coherence-cache-config. (XML).
The following entry is used


      repl-*
      example-replicated


      example-replicated
      ReplicatedCache
      
        
          unlimited-backing-map
        
      
      true

A replicated cache is probably what you need as well. You like all the data available on all nodes. If you want to use
your own cache configuration, you can add the option - Dtangosol.coherence.cacheconfig (see the for the default server startup script)

A good introduction on coherence can be found here:
http://www.packtpub.com/article/installing-coherence-3.5-and-accessing-the-data-grid-1
and
http://www.packtpub.com/article/installing-coherence-3.5-and-accessing-the-data-grid-2?utm_source=rk_coherence_abr1_0310&utm_medium=content&utm_campaign=ramsai

Tags: Fusion Middleware

Similar Questions

  • Field unique unique host 1 Admin and managed 2 weblogic cluster

    Hello

    I am configuring the Manager node for automation of graceful start and stop of admin and the managed server.

    weblogic cluster configured on a single host machine. Configure an admin and 2 managed server. It contains an area of application.

    Admin urt is http://hostname:9001 / Agile

    Management 1 http://hostname:7001 / Agile

    Run 2 http://hostname:8001 / Agile

    Manager node that is configured outside of the folder of weblogic

    Created nodemanager properties file and file field path to the node of file field.

    In addition, added startup script, set the script to start true and assigned to the strartup for the admin server script.

    Path of the application domain registered with all the admin domain Manager node

    In the Console, have set up one machine and mapped all three server on the machine.

    active crashrecovery true

    Later I started the management nodes. He has not started the administration server.

    began to admin server manually,

    A mapped admin nodemanader in Server Manager class path, so that I can start the managed server.

    My JMX managed server setting is

    DCOM. Sun.Management.jmxremote - Dcom.sun.management.jmxremote.port = 9896 - Dcom.sun.management.jmxremote.authenticate = false - Dcom.sun.management.jmxremote.ssl = false

    My JMX managed service setting is

    -Dcom.sun.management.jmxremote - Dcom.sun.management.jmxremote.port = 9899 - Dcom.sun.management.jmxremote.authenticate = false - Dcom.sun.management.jmxremote.ssl = false

    I am getting below error

    *********************************************************************************************************************************************************************************

    CLASSPATH=/ag3/app/Oracle/Middleware/patch_wls1211/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/ag3/app/Oracle/Middleware/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/ag3/app/jdk1.7.0_55/lib/tools.jar:/ag3/app/Oracle/Middleware/wlserver_12.1/server/lib/weblogic_sp.jar:/ag3/app/Oracle/Middleware/wlserver_12.1/server/lib/weblogic.jar:/ag3/app/Oracle/Middleware/modules/features/weblogic.server.modules_12.1.1.0.jar:/ag3/app/Oracle/Middleware/wlserver_12.1/server/lib/webservices.jar:/ag3/app/Oracle/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/ag3/ app/Oracle/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/ag3/app/Oracle/Middleware/patch_wls1211/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/ag3/app/Oracle/Middleware/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/ag3/app/jdk1.7.0_55/lib/tools.jar:/ag3/app/Oracle/Middleware/wlserver_12.1/server/lib/weblogic_sp.jar:/ag3/app/Oracle/Middleware/wlserver_12.1/server/lib/weblogic.jar:/ag3/app/Oracle/Middleware/modules/features/weblogic.server.modules_12.1.1.0.jar:/ag3/app/Oracle/Middleware/wlserver_12.1/server/lib/webservices.jar:/ag3/app/ Oracle/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/ag3/app/Oracle/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/ag3/app/Oracle/Middleware

    PATH=/ag3/app/Oracle/Middleware/wlserver_12.1/server/bin:/ag3/app/Oracle/Middleware/modules/org.apache.ant_1.7.1/bin:/ag3/app/jdk1.7.0_55/jre/bin:/ag3/app/jdk1.7.0_55/bin:/ag3/app/Oracle/Middleware/wlserver_12.1/server/bin:/ag3/app/Oracle/Middleware/modules/org.apache.ant_1.7.1/bin:/ag3/app/jdk1.7.0_55/jre/bin:/ag3/app/jdk1.7.0_55/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/ag3/app/jdk1.7.0_55/bin/

    Your environment has been defined.

    Error: Exception thrown by the agent: java.rmi.server.ExportException: Port already used: 9899; nested exception is:

    exception java.net.BindException: address already in use

    < 16 October 2015 01:38:12 > < FINEST > < NodeManager > < waiting for the process to die: 22611 >

    < 16 October 2015 01:38:12 > < INFO > < NodeManager > < server failed during startup, so won't be restarted >

    < 16 October 2015 01:38:12 > < FINEST > < NodeManager > < returned runMonitor, finished setting = true and notification servers >

    *********************************************************************************************************************************************************************************


    Is it possible that I can start my server managed by Admin? If Yes, what are the steps I have to do to make it viable.

    In addition, which is just how to configure the node Manager autostart administrator and Manager on the same host and server with the single domain.

    NodeManager cannot start Admin and the managed server automatically when you gracefully stop the managed server.

    Recovery setting enabled the crash work in case of a sudden collapse of the host itself. This does not mean that NodeManager servers will automatically start every time. Crash Recovery also works for servers that are started by using Nodemanager only.

    For:

    Error: Exception thrown by the agent: java.rmi.server.ExportException: Port already used: 9899; nested exception is:

    exception java.net.BindException: address already in use

    As says error itself port is already in use. Be sure to use the single port and also check if a process taking into this port.

    See you soon,.

    Naveen

  • Doubts about Weblogic Cluster and application deployment

    Hi all

    WebLogic...: 12.1.2

    ... OS: AIX 7.1

    We intend to create a Weblogic cluster at 2 knots in different sites to comply with the requirements of the customer HA. With this in mind im a few doubts began to rise:

    (1) this solution will have a server in site A Weblogic and an another Weblogic Server on site B, and we will create a Weblogic cluster with these 2 servers. It is equivalent to an Oracle extended RAC, but with Weblogic. Our link between sites is extremely fast, dedicated, with a latency of less than 5 ms. Is it possible and cost-effective to build such a solution?

    (2) regarding the deployment of the application, I would like to know if it is possible to deploy an application on Weblogic Server just on node A, and this application is automatically replicated on the Weblogic Server in site B? As far as I know, I have to deploy the application on both Weblogic servers manually.

    Thanks for the patience and attention.

    Hello

    (1) this solution will have a server in site A Weblogic and an another Weblogic Server on site B, and we will create a Weblogic cluster with these 2 servers. It is equivalent to an Oracle extended RAC, but with Weblogic. Our link between sites is extremely fast, dedicated, with a latency of less than 5 ms. Is it possible and cost-effective to build such a solution?

    Yes: is very easy to configure the (much easier than configuring PAP) weblogic server cluster.

    Please refer to:

    http://docs.Oracle.com/CD/E24329_01/Web.1211/e24425/overview.htm#CLUST114

    http://docs.Oracle.com/CD/E24329_01/Web.1211/e24425/Setup.htm#CLUST431

    (2) regarding the deployment of the application, I would like to know if it is possible to deploy an application on Weblogic Server just on node A, and this application is automatically replicated on the Weblogic Server in site B? As far as I know, I have to deploy the application on both Weblogic servers manually.

    You can deploy your application on weblogic cluster: his will be automatically deployed to all members of the cluster (all managed servers)

    HTH.

    Borys

  • Is ASM cluster configuration, possible to detail all cluster hosts

    In the case of configuration in cluster of ASM (where its possible to create one ASM DiskGroup is shared between all hosts in the cluster) is it possible to obtain information on all hosts (cluster node) (which are part of this cluster configuration) one machine.

    For example. If we have three nodes Node1, Node2, and Node3 configured using ASM cluster (i.e. default ASM instance will be ASM2 ASM1, and + ASM3 on these machine) and then I create multiple starts (some shared between all three nodes and bit limited to single node or two) using a set of SAN disk visible to all.
    In such a scenario, can I get the details of Node2 and Node3 comes to log in Node1 (i.e. Since one machine one single node part of ASM cluster configuration, I need information of all other machines/nodes).

    Is this possible? If so, some tips on the way which will be a great help.

    ~ Stéphane.

    Hi stephane,

    Maybe I'm missing something here, or I'm too detailed, but depending on how General should be your script, there are some steps, you must check to avoid the false assumptions - e.g., as here: "+ to get the CRS_HOME, I can grep for crsd.bin. If I don't get this running process, this means that configurations is a StandAlone OracleDB and turns to the ASM, ASM is too stand-alone instance. + »

    If you can't find the crsd.bin running, it could also mean that it will not turn now - for some reason any. If you find a DSO running instance, but not crsd.bin, Yes, you can generally assume that you would have a configuration of ASM nonclustered (autonomous), unless you run into a BUG / failure.

    Therefore, it might be a good idea to check the existence / first configuration, then to the current process. For example:

    IF you have installed Oracle Clusterware, you will find an init.cssd under /etc/init.d (for Linux, similar directories for other OS). Therefore, check first for the operating system, if you have the OS specific scripts, then just check for the init.cssd init directory.

    The advantages of checking the init.cssd are: you will get the Oracle Clusterware House - it is set as a variable:
    = ORA_CRS_HOME / ora/clusterware AND you usually get the Oracle user: ORACLE_USER = oracle

    Then you can check if Clusterware is running. You will have more than one way to do it now. You can use ps - ef or you can use Clusterware orders as crsctl check CRS or things of that kind.

    Of some people could argue that there is a DSMB for ASM in standalone (non-cluster) ASM facilities running and there is therefore an init.cssd. YES, but this init.cssd shouldn't be in init in this case - see the comment in the header of the script init.cssd: "In a local, nonclustered, installation without CARS, it must be placed in a directory rcX.d".

    However, just to be safe, you can always check whether or not you will find init.crsd, init.evmd, which are very strong indicators that Clusterware has been installed on the system, unless it was not uninstalled properly...

    Once you've found the Clusterware installed, running AND you know the path to the House - it's easy:

    As said previously, you can use olsnodes to get the nodes in the cluster. You can still use crs_stat. It will tell you the ASM / RAC, the instance number and this node the instance number is running on:

    Name = ora.myrac1.ASM1.asm
    TYPE = application
    TARGET = ONLINE
    STATUS = online on pmrac1

    As for CARS DB instances:

    Name = ora.myrac.myrac1.inst
    TYPE = application
    TARGET = ONLINE
    STATUS = online on pmrac1

    To determine which is the node that you are running your script on: host name must do.

    Of course, all this will work only IF you have installed Clusterware. For environments not clustered, you must work with the ps - ef command, sqlplus and oratab file as you mentioned below, which makes it a bit more complicated. We could predict that's SO so OTHERWISE in your script - IF cluster, THEN do foo, otherwise do BLAH. Just an idea.

    For this question:
    Belongs to ASM cluster - (yes/no)
    (If crsd.bin is running, ASM is clustered. Can this method be invoked always?)

    IF you have a cluster installed, ASM should be part - is the default and recommendation. However, you can run in a broken configuration. You want to guess in your script and secure?

    Just a few random ideas. Thank you
    Markus

  • 10.3, as "only Weblogic server" cluster configuration

    Hello

    We have a Cluster of servers managed by two. Ports are the MS 7002, 7003. We want these server deployments to be visible through port 80/443. Currently we have Mapviewer application deployed and targeted to the cluster. All servers are running and the deployment is active. However, we are only able to access the deployment on ports 7002, 7003.

    The documentation states: "a group of WebLogic Server consists of several instances of Server WebLogic Server running simultaneously and work together to provide scalability and reliability.» A cluster appears to clients as a single instance of WebLogic Server".

    But nowhere does how to get a cluster to appear as a "single Weblogic Server instance. Where this happens in the console files or config admin? Maybe it's a function of node Manager? Help, please. Thank you.

    Look at the following for more information on the conduct of with WebLogic load balancing: [http://e-docs.bea.com/wls/docs92/cluster/load_balancing.html].

    It seems that there are a few options to make the 'internal' (not an external load balancer) load balancing, using a proxy plugin.

  • Consistency of unicast environment Cluster configuration

    Hi all

    I have a scenario where I need to set up a cluster of consistency so that it can be used in a cluster SOA or OSB. A BPEL application will be using coherence of cache to store temporary data, and retrieve that data later in the different process. Could you please explain to me what all the steps I have to follow in order to configure the cluster of coherence.

    Thank you
    Ankush
  • Consistency Cluster configuration

    Given the configuration,

    If there are two packages of ejb - jar A and B, and each has a configuration file from the cache checked in these packages of jar and they have both the same name of the cluster and cluster-port specified.

    Should I wait:

    There will be two instances of consistency from one for every A and B and then these two instances would form a consistency group?

    Thank you

    Hi Pierre,.

    Yes I think it's okay. Two EJB applications need to be isolated from each other within the app for each server is a member of the cluster.

    JK

  • How do you set up ADR in a Weblogic Cluster? On the second server, get "this facility has not yet been configured '...

    We currently have ADR installed 2.0.9 on WLS 10.3.6 running on Windows 2008R2 behind a F5 load balancer. When load balancing sends connections to the server, we have configured everything first, everything works fine. When load balancing sends connections to the server to scale, we get the ADR page with "this facility has not yet been configured. The defaults.xml and related directories were created automatically on the second server. We tried to change the debug.debugger and debug.printDebugToScreen entries in the second server defaults.xml, but nothing happened. What do we lack? How set us the second server?

    The problem has been resolved. After looking at the directories and defaults.xml WLS created on the server to scale out, we thought that the configuration files were not created/copied from the original server. We ran the configuration of 'java-jar ords.war setup' on the second server, restarted the application of WLS and everything started working as expected.

  • WebLogic Cluster problem

    All hell

    I am trying to troubleshoot a weblogic clustering issue and am hoping that I get help here.

    Basically, I have properly configured a cluster between 2 managed server nodes. After you have configured node 1, I used the pack/unpack to build node 2. The combination seems to work and I'm able to start two managed servers. However the deployments fail on node 2 and succeed on node 1

    The error is due to a missing class file. WebLogic is able to locate this class on node 1, but for node 2, it returns an error "class not found". The jar file exist on both nodes at the same place

    After further investigation, I noticed that there is a difference between how node 1 and node 2 are started i.e. different class paths. The node Manager allows us to launch the two servers.

    How can I make sure that the Manager of the nodes on both nodes use the same startup for the respective nodes script so that class paths are the same

    Thank you

    Shiva

    I was able to understand the question. StartScriptEnabled = true on node 2, fixed the problem. Nodemanager using scripts separated on both nodes that was causing the server to be different properties
    StartScriptEnabled = real forces NodeManager to use the script startManagedWeblogic on both nodes

  • Consistency, Weblogic

    Please tell what are the steps required to configure the cluster of consistency for Weblogic Server.

    [Extension name: consistency-web-spi, exact match: false].

    you have that jar deployed as a shared library

  • VCS Cluster configuration

    I'll put up a cluster between VCS - 02c in version 8.x and one of them will be the captain. I will put all endpoints in the VCS - C Master points, what would happen if the master of VCS - C problems? My end points would be automatically transferred to another VCS - C (backup)?

    Hello

    Setup is a cluster of VCS VCS a set up a Master and others as a slave.

    Your points of termination/Codec must register to the VCS cluster (you need to update your DNS with VCS cluster name i.e. clustervcs.domain.com with the ip addresses of two VCS.  You can use SRV records to do a primary and the other back).  If your CODEC does not support the SRV record then you can put the IP of master VCS and the registration, the VCS Master will provide the idec with its ip address and ip address of the slave VCS.

    A good link:

    http://www.netcraftsmen.NET/blogs/entry/Cisco-VCs-clustering-configuration.html

    I hope this helps.

    Kind regards

    Ahmed

  • Move cluster configured with replication SRM and Vsphere

    All,

    We go 2 groups in the near future to achieve a geographical distance between the 2 sites.

    A cluster is equipped with VMware 5.0 replication SRM and vSphere and the other cluster running VMware 5.5 and SRM in combination with replication of vSphere.

    What is the best way to move these clusters, I must stop the replication or interrupt the replication process and are these action to perform on SRM or we need to perform any action on the virtual machine itself?

    I read that a stop is setting the State to not configured including destroy all files in the target directory.

    Does anyone have an experience by physically moving a cluster managed by SRM (and replication of vSphere)

    Any help is welcome

    Thank you

    Gerbert Coolen

    Just pause replication before stop you the VR device on the site target/DR. stop vs break with vSphere replication - VMware vSphere Blog - Articles from VMware

  • Planning Via Weblogic cluster for load balancing

    We evolve our 11.1.2.2 Planning application on two physical servers as described in the documentation for EPM and the Weblogic console sees the valid cluster.

    Each server is used when it is not working, but how we can demonstrate that the two servers are certainly all load balancing when you use forms, business rules, and indeed any other thing.

    JConsole is a rudimentary indicator as to load the JAVA virtual machine and looking at newspaper planning could help if you know what to look for, but I would really like to know the details of a person who has perhaps done this before or who can guide me on the relevant documentation.

    The Oracle documentation, I found so far seems to take you far and then you drops.

    We are a site of Unix and are currently using a web server HTTP Oracle

    Thank you

    You can use Enterprise manager to monitor sessions between managed servers or the monitoring tool for apache (which is essentially what SST is running).

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • WebLogic cluster steps

    Hi everyone, I am new to weblogic so I need your help to know every steps involved in setting up the weblogic on two different boxes and cluster it finally this group should be a load balanced with apache server.

    I would like to explain a bit more on the infrastructure that I want to have.

    (1) two weblogic servers running on two different machines (on the Linux machine).

    (2) I'll have apache in a single server.

    (3) each weblogic will have its own adminserver.

    (4) the weblgic servers will be connected to the same DB

    (5) client will connect to the Loadbalancer which is Server apache (on the windows box).

    (6) server Apache is to balance requests from customers between the two servers, weblogic.

    (7) I have weblogic12c installed on the servers.

    Please let me know if all the info you need of clarification.

    Thanks in advance.

    Karthik S

    Hello

    Please follow the link for clustering on two boxes below

    http://middlewaremagic.com/WebLogic/?p=971

    and follow the link for apache communicate with the weblogic below grouped boxes,.

    http://middlewaremagic.com/WebLogic/?p=1311

    Kind regards

    Fabian

  • HFM Application Cluster Configuration - failed

    Hello

    I use the EPM 11.1.1.3 System. The Oracle database version is 10g. When I tried to reconfigure HFM Application cluster via the EMP Configurator, I get error below. I just added the name of the HFM server to the cluster and click Next. Please could you help on this issue.

    Error Msg in the log file:
    The server name duplicated SERVERNAME line: 1062 file:.\CHFMConfig.cpp error code: 0 x 0 error: the operation completed successfully.
    The user has been properly set up DCOM limitations
    Try to configure the cluster server.
    Cannot set the application servers and Clusters. Line: 515 file:.\CHFMConfigUtil.cpp Error code: 0x8004082a error: #1578 IDispatch error
    General error. Line: 827 file:.\CHFMConfigUtil.cpp Error code: 0 x 80040815 error: error IDispatch #1557

    Thank you
    Michel K

    I removed the name of server in doubles in the HFM_Config.xml file and solved the problem.

    Thank you

Maybe you are looking for