fs_loop: Runs the epitweetr embedded database loop

View source: R/fs.R

fs_loopR Documentation

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)

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.

Value

nothing

See Also

detect_loop

search_loop

health_check

Examples

if(FALSE){
   #Running the detect loop
   library(epitweetr)
   message('Please choose the epitweetr data directory')
   setup_config(file.choose())
   fs_loop()
}

epitweetr documentation built on Nov. 16, 2023, 5:07 p.m.