27.4.2. Taking a Site Offline (Library Mode)
In Red Hat JBoss Data Grid's Library mode, use the
backupFor
element after defining all back up sites within the backups
element:
<backup> <takeOffline afterFailures="${NUM}" minTimeToWait="${PERIOD}"/> </backup>
Add the
takeOffline
element to the backup
element to configure automatically taking a site offline.
- The
afterFailures
parameter specifies the number of times attempts to contact a site can fail before the site is taken offline. The default value (0
) allows an infinite number of failures ifminTimeToWait
is less than0
. If theminTimeToWait
is not less than0
,afterFailures
behaves as if the value is negative. A negative value for this parameter indicates that the site is taken offline after the time specified byminTimeToWait
elapses. - The
minTimeToWait
parameter specifies the number (in milliseconds) to wait to mark an unresponsive site as offline. The site is taken offline after the number attempts specified in theafterFailures
parameter conclude and the time specified byminTimeToWait
after the first failure has elapsed. If this parameter is set to a value smaller than or equal to0
, this parameter is disregarded and the site is taken offline based solely on theafterFailures
parameter.