Browse Source

feat: Edit README.md

Signed-off-by: devad <cossjie@gmail.com>
pull/9/head
devad 3 years ago
parent
commit
f04458765e
7 changed files with 131 additions and 5 deletions
  1. +15
    -0
      Makefile
  2. +40
    -5
      README.md
  3. +19
    -0
      docs/etc/service/pcm-gateway.service
  4. +19
    -0
      docs/etc/service/pcm-pod.service
  5. +19
    -0
      docs/etc/service/pcm-slurm.service
  6. +19
    -0
      docs/etc/service/pcm-vm.service
  7. BIN
      docs/imges/pcm.png

+ 15
- 0
Makefile View File

@@ -0,0 +1,15 @@
gateway:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-gateway gateway/main.go

pod:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-pod adaptor/pcm_pod/main.go

vm:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-vm adaptor/pcm_vm/main.go

slurm:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-slurm adaptor/pcm_slurm/main.go

build: gateway pod vm slurm

.PHONY: gateway pod vm slurm build

+ 40
- 5
README.md View File

@@ -1,8 +1,43 @@
# PCM
# PCM: Peer Collaboration Mechanism

## protobuf 编译流程
```shell
sh gen.sh
PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration in a non intrusive and autonomous peer-to-peer manner. It focuses on how to make full use of the computing and storage capabilities of multiple source clouds without changing the heterogeneous cloud computing software stack, rather than implementing a new cloud software stack. From the cloud perspective, PCM superimposes on the cloud and focuses more on collaboration between clouds than on the cloud itself.

![pcm](docs/imges/pcm.png)

## Requirements

---

* Linux amd64

* [Slurm-2-6-9-1](https://github.com/SchedMD/slurm/archive/refs/tags/slurm-2-6-9-1.tar.gz)

* [Go](https://go.dev/) 1.19 or higher

* [GCC](https://gcc.gnu.org/) 4.8.5 or higher



## Quick Start

---

```
# clone
git clone https://gitlink.org.cn/JCCE/PCM.git

# get required packages
go mod tidy

# build pcm components
make build

# start service
nohup ./pcm-gateway &> pcm-gateway.log &
nohup ./pcm-pod &> pcm-pod.log &
nohup ./pcm-vm &> pcm-vm.log &
nohup ./pcm-slurm &> pcm-slurm.log &
```

protobuf生成的文件在lan_trans下
If the startup is successful, the 'gateway' will listen on the '8880' port by default, and no error is reported in the log. The above is a simple demonstration using nohup. It is recommended that the production environment should be hosted by systemd. The relevant service files can be found in the etc/service directory for reference.


+ 19
- 0
docs/etc/service/pcm-gateway.service View File

@@ -0,0 +1,19 @@
[Unit]
Description="pcm-gateway"
Documentation=https://www.gitlink.org.cn/JCCE/PCM
After=network.target

[Service]
Type=simple

ExecStart=/usr/local/bin/pcm-gateway

Restart=on-failure
SuccessExitStatus=0
LimitNOFILE=65536
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=pcm-gateway

[Install]
WantedBy=multi-user.target

+ 19
- 0
docs/etc/service/pcm-pod.service View File

@@ -0,0 +1,19 @@
[Unit]
Description="pcm-pod"
Documentation=https://www.gitlink.org.cn/JCCE/PCM
After=network.target

[Service]
Type=simple

ExecStart=/usr/local/bin/pcm-pod

Restart=on-failure
SuccessExitStatus=0
LimitNOFILE=65536
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=pcm-pod

[Install]
WantedBy=multi-user.target

+ 19
- 0
docs/etc/service/pcm-slurm.service View File

@@ -0,0 +1,19 @@
[Unit]
Description="pcm-slurm"
Documentation=https://www.gitlink.org.cn/JCCE/PCM
After=network.target

[Service]
Type=simple

ExecStart=/usr/local/bin/pcm-slurm

Restart=on-failure
SuccessExitStatus=0
LimitNOFILE=65536
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=pcm-slurm

[Install]
WantedBy=multi-user.target

+ 19
- 0
docs/etc/service/pcm-vm.service View File

@@ -0,0 +1,19 @@
[Unit]
Description="pcm-vm"
Documentation=https://www.gitlink.org.cn/JCCE/PCM
After=network.target

[Service]
Type=simple

ExecStart=/usr/local/bin/pcm-vm

Restart=on-failure
SuccessExitStatus=0
LimitNOFILE=65536
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=pcm-vm

[Install]
WantedBy=multi-user.target

BIN
docs/imges/pcm.png View File

Before After
Width: 1025  |  Height: 418  |  Size: 102 kB

Loading…
Cancel
Save