sunshinejunge / neptune

Neptune is an experimental learning project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is neptune?

Neptune is an experimental learning project.
Using C++ language to realize related functions of distributed system.
The code structure is mainly composed of two parts, base and module.

src/base

It is a basic library of neptune.

src/module

Various service components are integrated in this section,such as 'module/dfs'.

module/dfs

Depend on gtest

git clone https://github.com/google/googletest
cd googletest/googletest
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
make
sudo make install

Build

./build.sh

Run

metaserver
  • cd build/release/release/
  • ./bin/metaserver -f /opt/neptune/dfs/conf/metaserver.conf -d
dataserver
  • mkfs.ext4 /dev/sda
  • mount -t ext4 /dev/sda /data/disk1
  • bash ./script/disk.sh format 1
  • ./bin/dataserver -f /opt/neptune/dfs/conf/dataserver.conf -i 1

About

Neptune is an experimental learning project.


Languages

Language:C++ 99.1%Language:C 0.5%Language:CMake 0.3%Language:Shell 0.2%