Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Aleph

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Aleph
    3. Knowledge Articles
    4. Sharing $TMPDIR for 2 web servers

    Sharing $TMPDIR for 2 web servers

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Additional Information
    • Article Type: General
    • Product: Aleph
    • Product Version: 15.2

    Description:
    We have 2 web servers going through a load balancer to provide access to our Web OPAC.

    We are experiencing a problem with printing/saving records: sometimes when a user clicks on "print" the OPAC displays "page not found". This seems to be because the load balancer directs the request at the 'wrong' web server, and the .sav file is actually in the $TMPDIR on the other server.

    Other than using "sticky" sessions (we don't really want to use this, as it stops the load balancer from balacing traffic efficiently) is there any other way around this?

    Would it be possible to use NFS on the $TMPDIR for both servers - effectively sharing one "folder" between the two? How are the file names for files in $TMPDIR assigned, and is it possible each server could assign the same 'name' to a file , or would the files always be named differently?

    Resolution:
    (1) Using NFS: $TMPDIR can be located on one server and shared with the other, if necessary, using NFS. Alternatively, the directory could be on an external drive available to both servers as a NFS share.

    (2) File naming: the file names use a counter called "last-file-number". This is stored in an Oracle table (Z52 in the BIB Library), and so can be seen by both web servers (you can prove this by running UTIL-G-2 on both servers - the values should be the same).

    This means that the file names should always be different (regardless of which server generated the file on the share).

    Additional Information

    load balancer, web server, printing, saving, $TMPDIR, NFS, z52


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • SFX; diacritics: "Cannot decode string with wide characters at ..."
      • Shelf Reading Report (p_item_04) reports multi-volume sets as misshelved
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      1. 15.2
      2. contype:kba
      3. Prod:Aleph
      4. Type:General
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved