Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 671157d91e0b82317c2687f712057b60 > files > 2

openais-1.1.4-2.fc15.i686.rpm

# AMF Example configuration file, please read README.amf
# - 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 = TEST_CLUSTER {
	saAmfClusterStartupTimeout=3000
	safAmfNode = AMF1 {
		saAmfNodeSuFailOverProb=2000
		saAmfNodeSuFailoverMax=2
		saAmfNodeClmNode=balance
	}
#	safAmfNode = AMF2 {
#		saAmfNodeSuFailOverProb=2000
#		saAmfNodeSuFailoverMax=2
#		saAmfNodeClmNode=p02
#	}
	safApp = APP-1 {
		safSg = RAID {
			saAmfSGRedundancyModel=nplusm
			saAmfSGNumPrefActiveSUs=1
			saAmfSGMaxActiveSIsperSUs=2
			saAmfSGNumPrefStandbySUs=1
			saAmfSGMaxStandbySIsperSUs=2
			saAmfSGCompRestartProb=100000
			saAmfSGCompRestartMax=2
			saAmfSGSuRestartProb=20000
			saAmfSGSuRestartMax=3
			saAmfSGAutoAdjustProb=5000
			safSu = SERVICE_X_1 {
				saAmfSUHostedByNode=AMF1
				saAmfSUNumComponents=1
				safComp = A {
					saAmfCompCategory=sa_aware
					saAmfCompCapability=x_active_or_y_standby
					saAmfCompNumMaxActiveCsi=1
					saAmfCompNumMaxStandbyCsi=1
					saAmfCompDefaultClcCliTimeout = 5000
					saAmfCompDefaultCallbackTimeOut = 5000
					saAmfCompInstantiateCmd = /tmp/aisexample/clc_cli_script
					saAmfCompInstantiateCmdArgv= instantiate /tmp/aisexample/testamf1
					saAmfCompTerminateCmd = /tmp/aisexample/clc_cli_script
					saAmfCompTerminateCmdArgv = terminate
					saAmfCompCleanupCmd = /tmp/aisexample/clc_cli_script
					saAmfCompCleanupCmdArgv = cleanup
					saAmfCompCsTypes {
						A
					}
					saAmfCompCmdEnv {
						var1=val1
						var2=val2
					}
					saAmfCompRecoveryOnError=component_restart
					safHealthcheckKey = key1 {
						saAmfHealthcheckPeriod = 100
						saAmfHealthcheckMaxDuration = 350
					}
				}
				safComp = B {
					saAmfCompCategory=sa_aware
					saAmfCompCapability=x_active_or_y_standby
					saAmfCompNumMaxActiveCsi=1
					saAmfCompNumMaxStandbyCsi=1
					saAmfCompDefaultClcCliTimeout = 5000
					saAmfCompDefaultCallbackTimeOut = 5000
					saAmfCompInstantiateCmd = /tmp/aisexample/clc_cli_script
					saAmfCompInstantiateCmdArgv= instantiate /tmp/aisexample/testamf1
					saAmfCompTerminateCmd = /tmp/aisexample/clc_cli_script
					saAmfCompTerminateCmdArgv = terminate
					saAmfCompCleanupCmd = /tmp/aisexample/clc_cli_script
					saAmfCompCleanupCmdArgv = cleanup
					saAmfCompCsTypes {
						B
					}
					saAmfCompCmdEnv {
						var1=val1
						var2=val2
					}
					saAmfCompRecoveryOnError=component_restart
					safHealthcheckKey = key1 {
						saAmfHealthcheckPeriod = 100
						saAmfHealthcheckMaxDuration = 350
					}
				}
			}
			safSu = SERVICE_X_2 {
				clccli_path=/tmp/aisexample
				saAmfSUHostedByNode=AMF1
#				saAmfSUHostedByNode=AMF2
				saAmfSUNumComponents=1
				safComp = A {
					saAmfCompCategory=sa_aware
					saAmfCompCapability=x_active_or_y_standby
					saAmfCompNumMaxActiveCsi=1
					saAmfCompNumMaxStandbyCsi=1
					saAmfCompDefaultClcCliTimeout = 5000
					saAmfCompDefaultCallbackTimeOut = 5000
					saAmfCompInstantiateCmd = clc_cli_script
					saAmfCompInstantiateCmdArgv= instantiate
					saAmfCompTerminateCmd = clc_cli_script
					saAmfCompTerminateCmdArgv = terminate
					saAmfCompCleanupCmd = clc_cli_script
					saAmfCompCleanupCmdArgv = cleanup
					saAmfCompCsTypes {
						A
					}
					saAmfCompCmdEnv {
						COMP_BINARY_PATH=/tmp/aisexample
						COMP_BINARY_NAME=testamf1
						var1=val1
						var2=val2
					}
					saAmfCompRecoveryOnError=component_restart
					safHealthcheckKey = amfInvoked {
						saAmfHealthcheckPeriod = 100
						saAmfHealthcheckMaxDuration = 350
					}
					safHealthcheckKey = compInvoked {
						saAmfHealthcheckPeriod = 100
						saAmfHealthcheckMaxDuration = 350
					}
				}
				safComp = B {
					saAmfCompCategory=sa_aware
					saAmfCompCapability=x_active_or_y_standby
					saAmfCompNumMaxActiveCsi=1
					saAmfCompNumMaxStandbyCsi=1
					saAmfCompDefaultClcCliTimeout = 500
					saAmfCompDefaultCallbackTimeOut = 500
					saAmfCompInstantiateCmd = /tmp/aisexample/clc_cli_script
					saAmfCompInstantiateCmdArgv= instantiate /tmp/aisexample/testamf1
					saAmfCompTerminateCmd = /tmp/aisexample/clc_cli_script
					saAmfCompTerminateCmdArgv = terminate
					saAmfCompCleanupCmd = /tmp/aisexample/clc_cli_script
					saAmfCompCleanupCmdArgv = cleanup
					saAmfCompCsTypes {
						B
					}
					saAmfCompCmdEnv {
						var1=val1
						var2=val2
					}
					saAmfCompRecoveryOnError=component_restart
					safHealthcheckKey = amfInvoked {
						saAmfHealthcheckPeriod = 100
						saAmfHealthcheckMaxDuration = 350
					}
					safHealthcheckKey = compInvoked {
						saAmfHealthcheckPeriod = 100
						saAmfHealthcheckMaxDuration = 350
					}
				}
			}
		}
		safSi = WL1 {
			saAmfSINumCSIs=2
			safCsi = WL1-1 {
				saAmfCSTypeName = A
			}
			safCsi = WL1-2 {
				saAmfCSTypeName = B
				safCSIAttr = attr1 {
					val1
					val2
				}
				safCSIAttr = good_health_limit {
					10
				}
			}
		}
		safSi = WL2 {
			saAmfSINumCSIs=2
			safCsi = WL2-1 {
				saAmfCSTypeName = A
			}
			safCsi = WL2-2 {
				saAmfCSTypeName = B
				safCSIAttr = attr1 {
					val1
					val2
				}
				safCSIAttr = good_health_limit {
					10
				}
			}
		}
		safCSType = A {
			safAmfCSAttrName = attr1
			safAmfCSAttrName = good_health_limit
		}
		safCSType = B {
		}
	}
}