Low commit activity in last 3 years
No release in over a year
Designed to provide fault tolerant access to a DRb file server when 2 or more back-end nodes are running.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.8, >= 0.8.1
~> 0.5, >= 0.5.5
 Project Readme

Introducing the drb_fileserver_plus gem

Setting up the nodes

Each node must point to the same file directory e.g. /home/james/www

Node 1

host: 192.168.4.177

require 'drb_fileserver'

DRbFileServer.new(host: '0.0.0.0').start

Node 2

host: 192.168.4.20

require 'drb_fileserver'

DRbFileServer.new(host: '0.0.0.0').start

Setting up the node server

host: 192.168.4.135

require 'drb_fileserver_plus'

DRbFileServerPlus.new(host: '0.0.0.0', nodes: ['192.168.4.177','192.168.4.20']).start

Reading a file from the client machine

require 'drb_fileclient'

DfsFile.read('dfs://192.168.4.135/miniwiki/main.md')

The drb_fileserver_plus gem is designed to provide a fault tolerant DRb file service using multiple nodes (DRb file servers) redundantly.

Notes:

  • If a node fails (e.g. 192.168.4.177) then the next node is used (e.g. 192.168.4.20)
  • The node server will raise an error exception if all nodes fail
  • SSHFS was the underlying file system used in each node
  • It was intended each node would have an indepent copy of the file system which would be regularly synchronised (using rsync) with the other nodes.

Resources

file server drbfileserverplus drb gem rsync dfs dfsfile