Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add command to verify that ce-client is running


Textstyles
Size13px
Colorrgb(236,0,140)

WORK IN PROGRESS | Services are in active development and are subject to change.


Textstyles
Size16px

Charity Engine is the crowdsourced

...

cloud – a compute service running on a global network of participating devices. This distributed platform provides an ecosystem of compute, storage, and networking capabilities.



Contents

Table of Contents
outlinetrue
indent0
stylenone
classtoc


Setup

The Charity Engine client installation is handled by a setup script that checks the status of the current environment and installs dependencies, as needed. Docker is installed and configured automatically. When GPU support is used, setup of the container runtime is also included.

...

For specific details, examine the contents of the setup script.

Requirements

  •  HardwareHardware
    • RAM: 4GB
    • CPU: x86_64 (*ARM support upon request)
    • Free HD space: 20 GB
    • GPU (*optional): Nvidia only (*AMD support to come)
  • Software
    • Ubuntu 18.04 or greater (or Debian-based equivalent)
    • Nvidia driver 410.48 or greater
    • CUDA toolkit 10.0 or greater
    • Docker 20.10 or greater, plus nvidia-container-runtime (*will be installed by our system if not present)

...

The CE Datacenter/Enterprise environment can be set up by running the following commands:

Code Block
languagebash
$ wget -O ce-docker-setup.ubuntu.sh https://www.charityengine.com/files/setup/ce-docker-setup.sh.ubuntu

...

 
$ sh ce-docker-setup.ubuntu.sh

...

Usage of the ce-docker-setup.ubuntu.sh script may include a number of optional parameters:

Code Block
languagejs
ce-docker-

...

setup.ubuntu.sh [args]
OPTIONS
--auth // Specify the authenticator to use to connect the host to Charity Engine (if omitted, system will prompt for authenticator)
--with-ipfs

...

 // Allow use of IPFS content on the host for task input files; this updates the ipfs config file to add a UNIX socket API interface so that files can be fetched

...


--no-gpu

...

 // Do not set up GPU packages or run the client with GPU support

...


--service-mode

...

 // Keep container running, fetching and processing new

...

 tasks  [default]
--task-mode

...

 // Run a single task, if available, then stop the container

(To debug, see 2.2 To troubleshoot)

Once setup has been completed on a system, the CE client can be managed via Docker:

Code Block
languagebash
$ docker [start|stop] ce-client 

To verify that the client is running

Code Block
languagebash
$ docker exec -it ce-client

...

 ce-ctl --get_host_info


Info

Running the docker start ce-client command will cause the client to either run a single compute job ("task_mode"), or continually check for and run compute jobs ("service mode" \[default\]) that have been submitted to the Charity Engine network, until manually stopped.

...

When new features or other improvements have been made to the setup script or CE client container image, the environment can be upgraded by fetching and running the latest setup script:

Code Block
languagebash
$ wget -O ce-docker-setup.ubuntu.sh https://www.charityengine.com/files/setup/ce-docker-setup.sh.ubuntu

...

 
$ sh ce-docker-setup.ubuntu.sh

...

Usage of the ce-docker-setup.ubuntu.sh script may include a number of optional parameters:

Code Block
languagejs
ce-docker-setup.ubuntu.sh [args]
OPTIONS
--auth // Specify the authenticator to use to connect the host to Charity Engine (if omitted, system will prompt for authenticator)
--with-ipfs

...

 // Allow use of IPFS content on the host for task input files; this updates the ipfs config file to add a UNIX socket API interface so that files can be fetched

...


--no-gpu

...

 // Do not set up GPU packages or run the client with GPU support

...


--service-mode

...

 // Keep container running, fetching and processing new

...

 tasks  [default]
--task-mode

...

 // Run a single task, if available, then stop the container

(To debug, see 2.2 To troubleshoot)

The CE client configuration will remain in the ~/.ce directory, so any work that was in progress prior to the upgrade will be continued.

...

To remove all CE files and containers from the system:

Code Block
languagebash
$ rm -r ~/.ce ce-docker-setup.ubuntu.sh nginx_work_proxy.conf

...

 
$ docker rm -f ce-client work-proxy

...

 

Note: These commands do not remove Docker CE, NVIDIA container runtime, or other packages that were installed as dependencies, nor do they revert changes to Docker system configuration that might have been made during setup to support rootless mode.

...

Testing + Troubleshooting

To run an initial demo

Launch the container:

Code Block
languagebash
$ docker start ce-client

...

 

Once the ce-client container is started,

  • it will begin downloading available jobs. (*Per Section 1.2 above, the default setup is "service mode")
  • the container may take a while to initialize as the container and associated data must be downloaded over the internet. Once processing starts, the computation job runs as a separate docker container. When the container starts, the computing container can be identified by running docker ps. The container is removed once computations are complete.
  • it is possible to view logs of the container by running docker logs ce-client. This should show that the GPU is detected, the connection to Charity Engine servers has been made, and work has been retrieved and has started processing.

To troubleshoot

For details on what is happening, and especially to identify any errors, run:

Code Block
languagebash
$ docker logs ce-client

...

 

To capture output from the setup script, append " 2>&1 | tee debug.out ", which will write setup script activity to a file, debug.out 

...

Code Block
languagebash
$ sh 

...

ce-docker-setup.ubuntu.sh –service-mode 2>&1 | tee debug.

...

out 

Support

Please contact us with any questions.