/trace.moe-worker

background worker nodes for trace.moe

Primary LanguageJavaScriptMIT LicenseMIT

trace.moe-worker

License GitHub Workflow Status Docker Docker Image Size Discord

Backend workers for trace.moe

Features

  • watch file system changes and upload hash to trace.moe-media
  • download video from trace.moe-media, hash, and upload to trace.moe-api
  • download hash from trace.moe-api, deduplicate, and upload to solr

Prerequisites

  • Node.js 14.x
  • ffmpeg 4.x
  • java (openjdk 1.8.0)
  • git
  • pm2

Install

Install Prerequisites first, then:

git clone https://github.com/soruly/trace.moe-worker.git
cd trace.moe-worker
npm install

Configuration

  • Copy .env.example to .env
  • Edit .env as appropriate for your setup

Start workers

You can use pm2 to run this in background in cluster mode.

Use below commands to start / restart / stop server.

npm run start
npm run stop
npm run reload
npm run restart
npm run delete

To change the number of nodejs instances, edit ecosystem.config.json