1 Reply Latest reply on Dec 5, 2005 7:37 AM by manik

    Sharing one file in a cluster

    muath

      Hello,

      I have two clustered nodes with apache load balancing. I want to share a file between them. The file is created as a report based on user request and then it is downloaded to the user. The problem here is when a software failure happens. In this case I want the file to be trasparently downloaded again to the user from the other node. Is this possible? If no then what is the best altarnative solution?

      Thanks you.

        • 1. Re: Sharing one file in a cluster
          manik

          Hi

          Where is the file stored when it is created? Some options may be:

          - Put the file in a database table (as an object or byte array) so it can be accessed by all nodes in a cluster

          - Put the file on a shared filesystem (NFS, Samba, etc) and have each node look up the file on disk

          - Either of the above + put the file in a replicated cache.

          The option you choose will depend on a number of factors:

          - How large is each file typically?
          - How many different files do you have?
          - How often is the same file accessed?

          Answering these questions will help you gauge the viability of disk/JDBC access, in addition to caching the file in memory and replicating it across nodes.