You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bokuore 62c9f40e1a set auto start 6 months ago
src set auto start 6 months ago
.gitignore first commit 2 years ago
CHANGELOG.md set auto start 6 months ago
LICENSE first commit 2 years ago
README.md first commit 2 years ago
cell_service.go set auto start 6 months ago
collector_module.go fixed:startup crash/collect disk space via storage paths/setup selinux on storage paths 1 year ago
daemon.go set auto start 6 months ago
go.mod 2/3 to enable CI allocation 10 months ago
go.sum 2/3 to enable CI allocation 10 months ago
transaction_manager.go set auto start 6 months ago

README.md

README

Overview

The Cell works on every server that needs to join the resource pool, it reports the resource usage and allocates instances when the Core request.

Start the Core module first, then the Cell module. A server node can only visible and able to host the instance when the Cell started properly.

Ensure the Cell has the identical communicate domain configuration to the Core you want to join.

Binary release found here

See more detail for Quick Guide

Official Site: https://nanos.cloud/en-us/

REST API: https://nanoen.docs.apiary.io/

Wiki: https://github.com/project-nano/releases/wiki/English

Build

Assume that the golang lib installed in the '/home/develop/go', and source code downloaded in the path '/home/develop/nano/cell'.

Set environment variable GOPATH before compiling

#git clone https://github.com/project-nano/cell.git
#cd cell
#export GOPATH="/home/develop/go:/home/develop/nano/cell"
#go build -o cell -i -ldflags="-w -s"

Command Line

All Nano modules provide the command-line interface, and called like :

< module name > [start | stop | status | halt]

  • start: start module service, output error message when start failed, or version information.
  • stop: stops the service gracefully. Releases allocated resources and notify any related modules.
  • status: checks if the module is running.
  • halt: terminate service immediately.

You can call the Core module both in the absolute path and relative path.

#cd /opt/nano/cell
#./cell start

or

#/opt/nano/cell/cell start

Please check the log file "log/cell.log" when encountering errors.

Configure

All configure files stores in the path: config

Domain Configuration

Filename: domain.cfg

See more detail about Domain

Parameter Description
domain The name of a communication domain, like 'nano' in default, only allows characters.
group_port Multicast port, 5599 in default
group_address Multicast address, '224.0.0.226' in default.