This repository has been archived by the owner on Mar 7, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,8 @@ | ||
# trace.moe-worker | ||
|
||
[](https://github.com/soruly/trace.moe-worker/blob/master/LICENSE) | ||
[](https://github.com/soruly/trace.moe-worker/actions) | ||
[](https://hub.docker.com/r/soruly/trace.moe-worker-hasher) | ||
[](https://hub.docker.com/r/soruly/trace.moe-worker-hasher) | ||
[](https://discord.gg/K9jn6Kj) | ||
|
||
Backend workers for [trace.moe](https://github.com/soruly/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](https://pm2.keymetrics.io/) | ||
|
||
### 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 | ||
Worker process are now spawn directly from [trace.moe-api](https://github.com/soruly/trace.moe-api). This is no longer needed for hashing and loading hashes. |