gdalcubes_start_server: Start one or more gdalcubes_server background processes
Description
Starts one or more gdalcubes_server instance on this machine. Created processes are added to a global list of gdalcubes_server processes.
Simultaneously running processes must use different ports.
Usage
gdalcubes_start_server(
port = 1111,
endpoint = "/gdalcubes/api",
whitelist = NULL,
threads = 1,
n = 1
)
Arguments
port
port number(s) where gdalcubes server(s) will listen for incoming requests
endpoint
base path where the API sets up its endpoints
whitelist
character vector with hosts that are allowed to connect to the server, if NULL (the default), all incoming requests will be accepted
threads
number of threads running to process parallel chunk read requests
n
number of servers to start, if n > 1 and ports has length 1, port numbers will be increased automatically by one
Examples
Run this code# NOT RUN {
gdalcubes_start_server() # single server process with default settings
gdalcubes_stop_server()
# }
Run the code above in your browser using DataLab