highPerformanceRoutingNetworkGarbageCollectionEnabled

Data which is used in a more general manner can be requested by xData service. Therefore this data is not provided by one of the other functional services, but concentrated in an own independent service.
Attention: this is not the platform for the data itself. If you have questions about missing data or the handling of binary maps please look at Data and Content.
Post Reply
User avatar
Bernd Welter
Site Admin
Posts: 2860
Joined: Mon Apr 14, 2014 10:28 am
Contact:

highPerformanceRoutingNetworkGarbageCollectionEnabled

Post 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
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
User avatar
Bernd Welter
Site Admin
Posts: 2860
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: highPerformanceRoutingNetworkGarbageCollectionEnabled

Post 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.
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply