forked from lsmyrnaios/UrlsWorker
Lampros Smyrnaios
018326eedd
- Improve the "getMultipleFullTexts"-endpoint. Check if the "fileNamesWithExtensions"-list is empty. Check if the baseDir for the fullTexts of a given assignments-counter is missing. - Optimize the "PublicationsRetrieverPlugin.processAssignments()" method. - Set a max-size limit to the amount of space the logs can use. Over that size, the older logs will be deleted. - Show the heap size, in the beginning. - Update Gradle. - Code cleanup. |
||
---|---|---|
gradle/wrapper | ||
scripts | ||
src | ||
.gitignore | ||
README.md | ||
build.gradle | ||
installAndRun.sh | ||
settings.gradle |
README.md
UrlsWorker
This is the Worker's Application.
It requests assignments from the controller and processes them.
It posts the results to the controller, which in turn, puts them in a database.
To install and run the application:
- Run
git clone
and thencd UrlsWorker
. - Create the file
S3_minIO_credentials.txt
, which contains just one line with the S3_url, S3_username, S3_password, S3_server_region and the S3_bucket, separated by a comma,
. - [Optional] Create the file
inputData.txt
, which contains just one line with the workerId and the controller's base api-url, seperated by a comma,
. For example:worker_1,http://IP:PORT/api/
. - Execute the
installAndRun.sh
script. In case the above file (inputData.txt) does not exist, it will request the current worker's ID and the Controller's Url, and it will create the inputData.txt file.
That script, installs the PublicationsRetriever, as a library and then compiles and runs the whole Application.
If you want to just run the app, then run the script with the argument "1": ./installAndRun.sh 1
.