Skip to content

emc-mongoose/mongoose-storage-driver-nfs

Repository files navigation

master downloads release Docker Pulls

Mongoose's NFS storage driver

Introduction

The storage driver extends the Mongoose's Abstract NIO Storage Driver. Also it uses EMC ECS NFS-client library.

Features

  • API version: NFS v3
  • Authentification: N/A?
  • Item types: TODO
  • Path listing input
  • Automatic destination path creation on demand
  • Data item operation types:
    • create, additional modes:
      • copy
    • read
      • full
      • random byte ranges
      • fixed byte ranges
      • content verification
    • update
      • full (overwrite)
      • random byte ranges
      • fixed byte ranges (with append mode)
    • delete
    • noop

Usage

Latest stable pre-built jar file is available at: https://github.com/emc-mongoose/mongoose-storage-driver-nfs/releases/download/latest/mongoose-storage-driver-nfs.jar This jar file may be downloaded manually and placed into the ext directory of Mongoose to be automatically loaded into the runtime.

java -jar mongoose-<VERSION>/mongoose.jar \
    --storage-driver-type=nfs \
    ...

Docker

Standalone

docker run \
    --network host \
    --entrypoint mongoose \
    emcmongoose/mongoose-storage-driver-nfs \
    -jar /opt/mongoose/mongoose.jar \
    --storage-type=nfs \
    ...

Distributed

Drivers

docker run \
    --network host \
    --expose 1099 \
    emcmongoose/mongoose-storage-driver-service-nfs

Controller

docker run \
    --network host \
    --entrypoint mongoose \
    emcmongoose/mongoose-base \
    -jar /opt/mongoose/mongoose.jar \
    --storage-driver-remote \
    --storage-driver-addrs=<ADDR1,ADDR2,...> \
    --storage-driver-type=nfs \
    ...

Advanced

Sources

git clone https://github.com/emc-mongoose/mongoose-storage-driver-nfs.git
cd mongoose-storage-driver-nfs

Test

./gradlew clean test

Build

./gradlew clean jar

Embedding

compile group: 'com.github.emc-mongoose', name: 'mongoose-storage-driver-nfs', version: '<VERSION>'