In order to improve the browsing and access efficiency of the image service, the dynamic cache scheme can be enabled. After the scheme is enabled, the existing tile resources under the cache directory will be directly loaded when the front-end browses the image map. If no available tile is found, the image will be dynamically plotted.

The existing Tile resources in the cache directory come from the following two ways:

Enable dynamic cache. Only the tile of the browsed area can be cached. It is difficult to cache the tile of all levels in all areas.

Silently slice the image service to pre-generate image map tiles for all levels in all areas. This pre-slicing method is suitable for application scenarios with low image mapdata update frequency but large concurrent access volume.

Preparation before Silent Slicing

Silent slicing is time-consuming and machine intensive, so before configuring and executing silent slicing, verify the following:

Cache Directory

The default cache directory path of the image service: installation directory\webapps\iserver\output\"ImageServiceName"\. The folder named "Image Collection Name" under this directory stores the tile of the corresponding collection.

The image service cache directory can be modified as follows:

1. Enter the service management page and click "Provider", as shown in the following figure.

2. Expand "Advance Settings", where the Tile Storage path is the cache directory; Tile Storage type: supports raw, compact, and MongoDB.

3. After completing the configuration, click the "Save" button to make the configuration effective.

Dynamic cache tiles and silent slice tiles of all image collections in the image service share the cache directory (tile storage path) and tile storage type configuration described above.

Turn on Dynamic Caching

1. Enter the service management page, as shown in the following figure.

2. Click the target collection name to enter the collection configuration page.

3. Switch to the "Tile Cache Config" page and turn on "CacheEnable".

Configuring the Silent Slice Tile Scenario

Configure the image type of the slice and other parameters, and continue to set the following parameters on the "Tile Cache Config" page:

The tile scheme is configured in the image collection, and different collections in the service can be configured with different tile schemes.

Dynamic cache tile and silent slice tile for imaging services, share this tile scheme configuration.

Configure Silent Slice Execution

There are two ways to perform silent slicing:

Proceed to the "Tile Cache Config" page to configure the slice execution parameters in the Silent Slice area:

the number of processes that execute the slicing task in the background. It is recommended to set it according to the machine configuration and the idle resources of the machine.

Configure the executable time period of the slice, select the "Start Time" and "End Time" of the time period, and click the "Add" button to add the selected time period to the list. Multiple time periods can be added.

A known idle time period of server resources can be configured as a slice time period. In this way, slicing is performed for a fixed time period each day, after which slicing is aborted; when the time period is reached again, slicing is resumed (tile breakpoint continuation).

Save the configuration

After the silent slice is configured, click the "Add" button to make the configuration effective.

If the execution mode is "Immediate", the background starts slicing immediately after the configuration is saved. On the "Backend Job" page, you can track the execution progress and execution status of the task.

If the execution mode is "Planned Task", after the configuration is saved, the slice will be started in the background when the slice time period is reached, and the corresponding task will appear on the "Backend Job" page; when the time period is exceeded, the slice will be terminated; when the time period is reached again, the slice will be continued, and a new "TillingTaskSetting" will appear on the background task page.

When you need to stop the silent slice schedule task of the collection or change the slice execution mode, you need to cancel the current execution mode first, as shown in the following figure, and then change it after saving the configuration.

When the configured silent slice is The execution completed and the silent slice is not turned off (the status shown in the figure above is turned off), the following configuration modifications may trigger the silent slice execution again:

It is recommended to close the silent slice in time after the completion of the silent slice, and open it again when it is necessary to re-slice.

 


About Image Collection Reslice and Patch Additional Levels:

When the tile storage type is MongoDB, the operation of adding tile to image collection is not supported.