forked from ultravioletrs/cocos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run manager using systemd (ultravioletrs#213)
Signed-off-by: Sammy Oina <[email protected]>
- Loading branch information
Showing
4 changed files
with
96 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Environment Configuration for Cocos | ||
|
||
# Jaeger Tracing | ||
COCOS_JAEGER_URL=http://localhost:4318 | ||
COCOS_JAEGER_TRACE_RATIO=1.0 | ||
|
||
# Manager Service Configuration | ||
MANAGER_INSTANCE_ID= | ||
MANAGER_BACKEND_MEASUREMENT_BINARY=../../build | ||
MANAGER_GRPC_CLIENT_CERT= | ||
MANAGER_GRPC_CLIENT_KEY= | ||
MANAGER_GRPC_SERVER_CA_CERTS= | ||
MANAGER_GRPC_URL=localhost:7001 | ||
MANAGER_GRPC_TIMEOUT=60s | ||
|
||
# QEMU Configuration | ||
MANAGER_QEMU_MEMORY_SIZE=25G | ||
MANAGER_QEMU_MEMORY_SLOTS=5 | ||
MANAGER_QEMU_MAX_MEMORY=30G | ||
MANAGER_QEMU_OVMF_CODE_IF=pflash | ||
MANAGER_QEMU_OVMF_CODE_FORMAT=raw | ||
MANAGER_QEMU_OVMF_CODE_UNIT=0 | ||
MANAGER_QEMU_OVMF_CODE_FILE=/usr/share/OVMF/x64/OVMF_CODE.fd | ||
MANAGER_QEMU_OVMF_CODE_READONLY=on | ||
MANAGER_QEMU_OVMF_VARS_IF=pflash | ||
MANAGER_QEMU_OVMF_VARS_FORMAT=raw | ||
MANAGER_QEMU_OVMF_VARS_UNIT=1 | ||
MANAGER_QEMU_OVMF_VARS_FILE=/usr/share/OVMF/x64/OVMF_VARS.fd | ||
MANAGER_QEMU_NETDEV_ID=vmnic | ||
MANAGER_QEMU_HOST_FWD_AGENT=7020 | ||
MANAGER_QEMU_GUEST_FWD_AGENT=7002 | ||
MANAGER_QEMU_VIRTIO_NET_PCI_DISABLE_LEGACY=on | ||
MANAGER_QEMU_VIRTIO_NET_PCI_IOMMU_PLATFORM=true | ||
MANAGER_QEMU_VIRTIO_NET_PCI_ADDR=0x2 | ||
MANAGER_QEMU_VIRTIO_NET_PCI_ROMFILE= | ||
MANAGER_QEMU_DISK_IMG_KERNEL_FILE=/home/sammyk/Documents/cocos-ai/cmd/manager/img/bzImage | ||
MANAGER_QEMU_DISK_IMG_ROOTFS_FILE=/home/sammyk/Documents/cocos-ai/cmd/manager/img/rootfs.cpio.gz | ||
MANAGER_QEMU_SEV_ID=sev0 | ||
MANAGER_QEMU_SEV_CBITPOS=51 | ||
MANAGER_QEMU_SEV_REDUCED_PHYS_BITS=1 | ||
MANAGER_QEMU_HOST_DATA= | ||
MANAGER_QEMU_VSOCK_ID=vhost-vsock-pci0 | ||
MANAGER_QEMU_VSOCK_GUEST_CID=3 | ||
MANAGER_QEMU_VSOCK_VNC=0 | ||
MANAGER_QEMU_BIN_PATH=qemu-system-x86_64 | ||
MANAGER_QEMU_USE_SUDO=true | ||
MANAGER_QEMU_ENABLE_SEV=false | ||
MANAGER_QEMU_ENABLE_SEV_SNP=false | ||
MANAGER_QEMU_ENABLE_KVM=true | ||
MANAGER_QEMU_MACHINE=q35 | ||
MANAGER_QEMU_CPU=EPYC | ||
MANAGER_QEMU_SMP_COUNT=4 | ||
MANAGER_QEMU_SMP_MAXCPUS=16 | ||
MANAGER_QEMU_MEM_ID=ram1 | ||
MANAGER_QEMU_KERNEL_HASH=false | ||
MANAGER_QEMU_NO_GRAPHIC=true | ||
MANAGER_QEMU_MONITOR=pty | ||
MANAGER_QEMU_HOST_FWD_RANGE=6100-6200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Unit] | ||
Description=Cocos Manager | ||
After=network.target | ||
|
||
[Service] | ||
ExecStart=cocos-manager | ||
Restart=on-failure | ||
RestartSec=5s | ||
EnvironmentFile=/etc/cocos/cocos-manager.env | ||
|
||
[Install] | ||
WantedBy=multi-user.target |