[infinispan-issues] [JBoss JIRA] (ISPN-2332) Update xsite configuration file

Mircea Markus (JIRA) jira-events at lists.jboss.org
Thu Sep 27 21:22:08 EDT 2012


    [ https://issues.jboss.org/browse/ISPN-2332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721313#comment-12721313 ] 

Mircea Markus edited comment on ISPN-2332 at 9/27/12 9:02 PM:
--------------------------------------------------------------

thanks Bela. Thinking about it a bit more, I wouldn't like the backups to be defined in the "global" section but each cache to do that in its own config, as there might be caches that don't backup data (in-site caches). More concrete here is what I have in mind:

{code:xml}
<global>   
  <sites local="${site:LON}"/>
</global>

<namedCache name="aCache">
  <sites>
       <backups backupSites="${backup-sites:SFO,NYC}>
                <backup site="NYC" backupFailurePolicy="WARN" strategy="SYNC" timeout="12000"/>
                <backup site="SFO" backupFailurePolicy="IGNORE" strategy="ASYNC"/>
                <backup site="LON" backupFailurePolicy="IGNORE" strategy="ASYNC"/>
       </backups>
   </sites>
</namedCache>

{code}
                
      was (Author: mircea.markus):
    thanks Bela. Thinking about it a bit more, I wouldn't like the backups to be defined in the "global" section but each cache to do that in its own config, as there might be caches that don't backup data (in-site caches). More concrete here is what I have in mind:

{code:xml}
<global>   
  <sites local="${site:LON}"/>
</global>

<namedCache name="aCache">
  <sites>
       <backups activeBackups="${backup-sites:SFO,NYC}>
                <backup site="NYC" backupFailurePolicy="WARN" strategy="SYNC" timeout="12000"/>
                <backup site="SFO" backupFailurePolicy="IGNORE" strategy="ASYNC"/>
                <backup site="LON" backupFailurePolicy="IGNORE" strategy="ASYNC"/>
       </backups>
   </sites>
</namedCache>

{code}
                  
> Update xsite configuration file
> -------------------------------
>
>                 Key: ISPN-2332
>                 URL: https://issues.jboss.org/browse/ISPN-2332
>             Project: Infinispan
>          Issue Type: Feature Request
>          Components: Cross-Site Replication
>    Affects Versions: 5.2.0.Alpha4
>            Reporter: Mircea Markus
>            Assignee: Mircea Markus
>            Priority: Blocker
>             Fix For: 5.2.0.Beta1
>
>
> Update configuration file after feedback:
> {code:xml}
>  <sites local="LON">
>    <site name="SFO"/>
>    <site name="NYC"/>
>    <site name="LON"/>
>  </sites>
> {code}
> The sites element above are not used and should be dropped.
> Also the local configuration should look like:
> {code:xml}
> <global>
>   <sites>
>        <localSite="${site:LON}" backupSites="${backup-sites:SFO,NYC}" />
>        <backups>
>                 <backup site="NYC" backupFailurePolicy="WARN" 
> strategy="SYNC" timeout="12000"/>
>                 <backup site="SFO" backupFailurePolicy="IGNORE" 
> strategy="ASYNC"/>
>                 <backup site="LON" backupFailurePolicy="IGNORE" 
> strategy="ASYNC"/>
>        </backups>
>    </sites>
> </global>
> {code}
> This would allow re-using of configuration files between sites. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the infinispan-issues mailing list