Replication of application files in a clustered environment may be
automated based on the state and/or configuration of the application in
the cluster. A clustering engine executing on one or more clustered
computing nodes may notify one or more replication agents regarding
changes in a clustered application's state and/or configuration. An
application's status may include information indicating one or more
cluster nodes on which the application is currently executing and also
may include information indicating one or more cluster nodes on which the
application is configured to execute. Replication agents executing on
cluster nodes may, either individually or through collective
coordination, modify a replication policy for replicating one or more
application files based on the received status information. Subsequently,
the replication agents may replicate the application files from one of
the clustered computing nodes to one or more other nodes, according to
the modified replication policy.