fs_loop: Runs the epitweetr embedded database loop
Description
Infinite loop ensuring that the epitweetr embedded database is running (Lucene + akka-http)
Usage
fs_loop(data_dir = NA)
Value
nothing
Arguments
data_dir
Path to the 'data directory' containing application settings, models and collected tweets.
If not provided, the system will try to reuse the existing one from last session call of setup_config or use the EPI_HOME environment variable, default: NA
Details
Launches the epitweetr embedded database which is accessed via a REST API located on http://localhost:8080. You can test that the database is running by accessing http://localhost:8080/ping
the REST API provide epitweetr a way to send and retrieve data related with tweets and time series and to trigger geolocation or aggregation
The database is implemented using Apache Lucene indexes allowing epitweetr to access its data as a search engine but also as a tabular database.
health_check called each 60 seconds on a background process to send alerts to the administrator if some epitweetr components fail.