Page 1 of 1

highPerformanceRoutingNetworkGarbageCollectionEnabled

Posted: Wed May 28, 2025 1:21 pm
by Bernd Welter
Hi there,

one of my players creates HPRs in his local xServer2 environment.

He then deploys them on a remote machine but the graphs are removed automatically, probably because the server is configured with
  • highPerformanceRoutingNetworkGarbageCollectionEnabled= true
After disabling the switch for the garbage collection he redeployed the graphs and they have not been deleted anymore.

:?: But: the when he tries to list the HPRs they do not appear in the response. They are also not shown in the UserDataMonitor.

This raises the question:
What exactly is the definition of "garbage"?

PS: reminds me of this thread which deals with the DIMA garbage collection.

Bernd

Re: highPerformanceRoutingNetworkGarbageCollectionEnabled

Posted: Wed May 28, 2025 2:57 pm
by Bernd Welter
Here's the missing piece...
hpr control.png
In the subdirectories of a user's HPR space there are
  • two files directoryControl and directoryControl.lck : these two files are used to detect whether something was changed. If the server is shut down you can delete these files: they will be recreated when the server is restarted.
  • per each HPR there's anbother meta file (*.valid) and a subdirectory named after the graph. While the subdirectory contains the the graph itself the "*.valid" file shows the garbage collection whether the HPR is
    • to be seen as garbage / to not appear in the list-statement
    • to be seen as valid / to appear in the list-statement
    If a HPR is deleted via an xData.delete call this *.valid file is removed and this causes the garbage collection to clean this HPR in the next iteration.
So here's what we assume:
  • In the customer's specific case either the surrounding directory structure based on tenant/scope is not proper or the *.valid files haven't been copied properly.
  • In some rare cases the HPR may not match the server's configured map version.