openmove / odh-mentor-otp

https://mobility.meran.eu
1 stars 3 forks source link

reload mechanism for Graph.obj #17

Closed zabuTNT closed 4 years ago

zabuTNT commented 4 years ago

http://dev.opentripplanner.org/apidoc/1.0.0/resource_Routers.html

In order to use "protected" endpoint you have to enable "Security": http://docs.opentripplanner.org/en/latest/Security/

ghost commented 4 years ago

optionally we can:

add commands to shutdown the build machine and write logs

after otp production is reloaded.

ghost commented 4 years ago

created new branch fot testing this feature in reload.sh script https://github.com/openmove/odh-mentor-otp/tree/reloading-otp

zabuTNT commented 4 years ago

Reloading graphs was implemented with commit https://github.com/openmove/odh-mentor-otp/commit/5c8f0fabb522781f583ec39678ad861d8535d43c

zabuTNT commented 4 years ago

WARNING: for security reason OTP should protected by a firewall and PUT/DELETE/POST requests should be filtered based on request IP.

zabuTNT commented 4 years ago

Probably is better to use these "undocumented" flags when we start OTP:

--autoReload automatic reload graphs if the files changed

and optional:

--autoScan automatic search for routers in the folder graphs

so we can remove --insecure, and PUT/DELETE/POST won't be allowed

ghost commented 4 years ago

@zabuTNT absolutely yes! this is best solution

zabuTNT commented 4 years ago

remove --insecure option and add --autoReload with commit ab5794b29cf76783f1f51ebf791d5710ffcf9df5