Distributed Tile Storage

Feedback


If you want to store map tiles in a distributed way, you need to register the distributed tiles storage with the iServer before creating the distributed graph cutting task. The types of distributed tiles storage currently supported are MongoDB , OTS (obsolete).

Add MongoDB Storage

MongoDB is a database based on distributed file storage, which aims to provide a scalable high-performance data storage solution for WEB applications. For the detailed introduction, installation and use of MongoDB, please refer to Installation and Configuration of MongoDB .

You can log in to the iServer service management server and click "Data"-"Data Registration". Enter the register data store page (http://{ip}:{port}/iserver/admin-ui/data/dataRegistration), which contains the registered data storage information. If you need to add For MongoDB storage, click the "Register Datastore" button and configure the following parameters:

Click the "Register Datastore" button below to complete the data registration.

You can also add MongoDB storage by modifying the system configuration file. When performing specific operations, add the following configuration information in iserver-system.xml:

<storage> 
      <id>m27</id>  
      <tileSourceInfo class="com.supermap.services.tilesource.MongoDBTilesourceInfo"> 
        <type>MongoDB</type>  
        <serverAdresses> 
          <string>localhost:27017</string> 
        </serverAdresses>  
        <database>smtiles</database>  
        <username>iserver</username>  
        <password>iserver</password> 
      </tileSourceInfo> 
    </storage> 
        

Where <database>、<username>, and <password> is an optional parameter.

Add OTS Storage (Obsolete)

OTS is a NoSQL storage service built on Alibaba Cloud Feitian distributed system, providing storage and real-time access to massive structured data.

You can log in to the old iServer service management server and click "Data"-"Data Registration". Enter the register data store page (http://{ip}:{port}/iserver/admin-ui/data/dataRegistration), which contains the registered data storage information. If you need to add For OTS storage, click the "Register Datastore" button and configure the following parameters:

Click the "Register Datastore" button below to complete the data registration.

You can also add OTS storage by modifying the system configuration file. When performing specific operations, add the following configuration information in iserver-system.xml:

    <storage> 
      <id>OTS1</id>  
      <tileSourceInfo class="com.supermap.services.tilesource.OTSTileSourceInfo"> 
        <type>OTS</type>  
        <instanceName>tileStore</instanceName>  
        <nodeName>cn-hangzhou</nodeName>  
        <fromPublic>true</fromPublic>  
        <accessKeyId>accessKeyId</accessKeyId>  
        <accessKeySecret>accessKeySecret</accessKeySecret> 
      </tileSourceInfo>
    </storage> 

 Note: Please specify in <accessKeyId>、<accessKeySecret> fill in the AccessKey information that you actually obtained.