Because .terraindb are database files that cannot be served statically, the server does need to be restarted when new such files are added. If you tell us more about your use case, we may be able to provide advice and/or create a feature request for asset-server. Can you please tell us more about why you need to be able to add .terraindb files without restarting asset-server?
Thank you for your reply.
The reason why we need to add .terraindb files without restarting asset server its because we are generating these files through an API so new .terraindb files are created.
The links created by the asset-server is then being used to a terrain provider.
The link to the terrain tiles gets a 404 response code not until you restart the asset server manually, we worry that this would affect other users of the API when we restart the asset-server because other users are depending on the links hosted by the asset-server
Thank you for letting us know more about your use case. This is a reasonable feature request, and we’ve opened an internal ticket to track it. I do not have a timeline for it yet so I can’t say how soon we will get to it, but I will provide updates in this thread.
Happy New Year. I’m reaching out to follow up on the ticket that was opened regarding the issue of updating .terraindb files without restarting the asset-server. Has there been any progress on this?
Additionally, I’m curious if there are any temporary workarounds to avoid restarting the asset-server every time new .terraindb files are added. For example, is there a possibility of implementing a “soft” or “polite” restart which wouldn’t disrupt the current service?
The ability to update and serve terrain data dynamically seems fundamental and I’m wondering if there’s an obvious solution that I might be missing.
With the release of Cesium ion self-hosted we’ve sunset asset-server as self-hosted supercedes and replaces asset-server. If you’re interested in checking out self-hosted you may find the section on tiling and serving data without kubernetes to be useful. Using self-hosted you can do exactly the flow you’re requesting, where you just copy a .terraindb file into the folder you’re serving and it will immediately become available.