Linux Clustering: Building and Maintaining Linux Clusters [1 ed.] 1578702747, 9781578702749

Linux Clustering: Building and Maintaining Linux Clusters provides Linux users with information about building their own

279 71 1MB

English Pages 156 Year 2002

Report DMCA / Copyright

DOWNLOAD PDF FILE

Recommend Papers

Linux Clustering: Building and Maintaining Linux Clusters [1 ed.]
 1578702747, 9781578702749

  • 0 0 0
  • Like this paper and download? You can publish your own PDF file online for free in a few minutes! Sign Up
File loading please wait...
Citation preview

/LQX[&OXVWHULQJ%XLOGLQJDQG0DLQWDLQLQJ/LQX[&OXVWHUV &KDUOHV%RRNPDQ 3XEOLVKHU1HZ5LGHUV3XEOLVKLQJ )LUVW(GLWLRQ-XQH ,6%1SDJHV

/LQX[&OXVWHULQJ%XLGLQJDQG0DLQWDLQLQJ/LQX[&OXVWHUVSURYLGHV/LQX[XVHUVZLWK LQIRUPDWLRQDERXWEXLOGLQJWKHLURZQ/LQX[FOXVWHUIURPWKHJURXQGXS,WJLYHVEHVW SUDFWLFHVKHOSIXOKLQWVDQGJXLGHOLQHVDERXWEXLOGLQJRQHVHUYHURUKXQGUHGVRIVHUYHUVDWD OHYHOWKDWDGPLQLVWUDWRUVDWDQ\H[SHULHQFHOHYHOFDQXQGHUVWDQG )URPLQVWDOODWLRQRIWKHDLUFRQGLWLRQLQJDQGSRZHULQWKHGDWDFHQWHUWRDOWHUQDWLYHILOH V\VWHPVWRWKHILQDOSURGXFWLRQUXQWKLVERRNSURYLGHV\RXZLWKHYHU\WKLQJWKDW\RXQHHGWR NQRZ/LQX[&OXVWHULQJ%XLGLQJDQG0DLQWDLQLQJ/LQX[&OXVWHUVZDONV\RXWKURXJKWKH LQLWLDOGHVLJQDQGVHOHFWLRQRIWKHEHVWSRVVLEOHW\SHVRIFOXVWHUVDVZHOODVFRYHULQJ PRQLWRULQJWRROVDQGSURYLGLQJIRUGLVDVWHUUHFRYHU\1RWRQO\GRHVWKLVERRNSURYLGH LQIRUPDWLRQRQSDUDOOHODQG%HRZXOIW\SHFOX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