diff --git a/README.rst b/README.rst index 808e19ca97f12236c01fa37b79187c6557a32d58..f7c10fa124dbb77159ff58216492abd5369f9faf 100644 --- a/README.rst +++ b/README.rst @@ -133,14 +133,14 @@ Install averaging tasks to create average fields in the metobs_realtime bucket: .. code-block:: bash - python -m metobscommon.influxdb create_tasks + python -m metobscommon.influxdb create_tasks --token <READ_WRITE_TOKEN> Backfill InfluxDB Database -------------------------- Insert data from an old tower file: - python -m aosstower.level_00.influxdb -vvv --bulk 5000 /data1/raw/aoss/tower/2018/05/08/aoss_tower.2018-05-08.ascii + python -m aosstower.level_00.influxdb -vvv --bulk 5000 --influxdb-token <READ_WRITE_TOKEN> /data1/raw/aoss/tower/2018/05/08/aoss_tower.2018-05-08.ascii The above command sends data in blocks of 5000 records. This is to improve performance of sending data to the InfluxDB instead of sending one record @@ -148,7 +148,7 @@ at a time. A bulk value of 5000-10000 is preferred. Compute the averages for 5 second tower and data: - python -m metobscommon.influxdb -vvv run_manual_average --stations aoss.tower -s 2018-05-07T00:00:00 -e 2018-05-08T22:00:00 -d 1m 5m 1h + python -m metobscommon.influxdb -vvv run_manual_average --stations aoss.tower -s 2018-05-07T00:00:00 -e 2018-05-08T22:00:00 -d 1m 5m 1h --influxdb-token <READ_WRITE_TOKEN> Note the above computes the 1m, 5m, and 1h averages. The time range (-s/-e) must be at whole intervals for the average intervals specified otherwise @@ -159,7 +159,7 @@ use a large amount of memory. To insert a series of tower files: - find /data1/raw/mendota/buoy/2018/ -name "*.ascii" -print0 | sort -z | xargs -r0 -n1 python -m aosstower.level_00.influxdb -vvv --bulk 5000 + find /data1/raw/mendota/buoy/2018/ -name "*.ascii" -print0 | sort -z | xargs -r0 -n1 python -m aosstower.level_00.influxdb -vvv --bulk 5000 --influxdb-token <READ_WRITE_TOKEN> The above command sorts the files by name which is important for the best performance.