Here is example for two-node cluster. Take a look the attached file.

With best regards,
Anatoly.

# AMF Test configuration file
# - Times in milliseconds
# - clccli_path can be set on any level from application and down and will be
# added to the CLI commands if they are not already specified with an absolute
# path (begins with /).
# WL - WorkLoad

safAmfCluster = CLUSTER {
        saAmfClusterStartupTimeout=10000
        safAmfNode = <AMF_HOST1> {
                saAmfNodeSuFailOverProb=2000
                saAmfNodeSuFailoverMax=200
                saAmfNodeClmNode=<AMF_HOST1>
        }
        safAmfNode = <AMF_HOST2> {
                saAmfNodeSuFailOverProb=2000
                saAmfNodeSuFailoverMax=200
                saAmfNodeClmNode=<AMF_HOST2>
        }
        safApp = DB {
                safSg = DB {
                        saAmfSGRedundancyModel=nplusm   
                        saAmfSGNumPrefActiveSUs=1
                        saAmfSGMaxActiveSIsperSUs=1
                        saAmfSGNumPrefStandbySUs=1
                        saAmfSGMaxStandbySIsperSUs=1
                        saAmfSGCompRestartProb=20000
                        saAmfSGCompRestartMax=0
                        saAmfSGSuRestartProb=20000      
                        saAmfSGSuRestartMax=0
                        saAmfSGAutoAdjustProb=5000
                        safSu = SERVICE2 {
                                saAmfSUHostedByNode=<AMF_HOST2>
                                saAmfSUNumComponents=1
                                safComp = SERVER2 {
                                        saAmfCompCategory=sa_aware
                                        
saAmfCompCapability=x_active_or_y_standby
                                        saAmfCompNumMaxActiveCsi=1
                                        saAmfCompNumMaxStandbyCsi=1
                                        saAmfCompDefaultClcCliTimeout = 10000
                                        saAmfCompDefaultCallbackTimeOut = 10000
                                        saAmfCompInstantiateCmd = 
<AMF_START_DIR>/component_cli.sh
                                        saAmfCompInstantiateCmdArgv= 
instantiate <AMF_START_DIR>/component
                                        saAmfCompTerminateCmd = 
<AMF_START_DIR>/component_cli.sh
                                        saAmfCompTerminateCmdArgv = terminate
                                        saAmfCompCleanupCmd = 
<AMF_START_DIR>/component_cli.sh
                                        saAmfCompCleanupCmdArgv = cleanup
                                        saAmfCompCsTypes {
                                                CSITYPE
                                        }
                                        saAmfCompCmdEnv {
                                                CLUSTER_USER=<CLUSTER_USER>
                                                
CLUSTER_PASSWORD=<CLUSTER_PASSWORD>
                                                
CLUSTER_CATALOG=<CLUSTER_CATALOG>
                                        }
                                        
saAmfCompRecoveryOnError=component_failover
                                        safHealthcheckKey = key {
                                                saAmfHealthcheckPeriod = 2000
                                                saAmfHealthcheckMaxDuration = 
1000
                                        }
                                }
                        }
                        safSu = SERVICE1 {
                                saAmfSUHostedByNode=<AMF_HOST1>
                                saAmfSUNumComponents=1
                                safComp = SERVER1 {
                                        saAmfCompCategory=sa_aware
                                        
saAmfCompCapability=x_active_or_y_standby
                                        saAmfCompNumMaxActiveCsi=1
                                        saAmfCompNumMaxStandbyCsi=1
                                        saAmfCompDefaultClcCliTimeout = 10000
                                        saAmfCompDefaultCallbackTimeOut = 10000
                                        saAmfCompInstantiateCmd = 
<AMF_START_DIR>/component_cli.sh
                                        saAmfCompInstantiateCmdArgv= 
instantiate <AMF_START_DIR>/component
                                        saAmfCompTerminateCmd = 
<AMF_START_DIR>/component_cli.sh
                                        saAmfCompTerminateCmdArgv = terminate
                                        saAmfCompCleanupCmd = 
<AMF_START_DIR>/component_cli.sh
                                        saAmfCompCleanupCmdArgv = cleanup
                                        saAmfCompCsTypes {
                                                CSITYPE
                                        }
                                        saAmfCompCmdEnv {
                                                CLUSTER_USER=<CLUSTER_USER>
                                                
CLUSTER_PASSWORD=<CLUSTER_PASSWORD>
                                                
CLUSTER_CATALOG=<CLUSTER_CATALOG>
                                        }
                                        
saAmfCompRecoveryOnError=component_failover
                                        safHealthcheckKey = key {
                                                saAmfHealthcheckPeriod = 2000
                                                saAmfHealthcheckMaxDuration = 
1000
                                        }
                                }
                        }
                }
                safSi = SI {
                        saAmfSINumCSIs=1
                        safCsi = CSI {
                                saAmfCSTypeName = CSITYPE
                        }
                }
                safCSType = CSITYPE {
                }
        }
}

_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to