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:

  • Storage ID: User-defined storage ID name, a unique identifier created for the database
  • Datastore Type: Select "Distributed Tile Reposiory".
  • Tiles Storage Ttype: Select "MongoDB". Click "Add MongoDB Service Address".
  • Service Address: The address of the MongoDB service, in the format of {ip}:{port}
  • Add Replicationset: If checked, creates a replica of the data in distributed tiles storage. MongoDB can be implemented through the replica set mechanism. Automatic failover of the storage system improves data availability.
  • Name: The database used to store map tiles. By default, a database named smtiles is used.
  • User Name: The user who has permission to access the database. That is, the user name and password you set for the database you will be using before you enter them.
  • Password: The password that has been set.

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:

  • Storage ID: User-defined storage ID name, a unique identifier created for the database
  • Datastore type: Select "Distributed Tile Reposiory".
  • Tiles Storage Type: Select OTS
  • Instance name: Enter the instance name created on the AliCloud Table Store console management page. An instance is an entity for a user to use and manage an OTS service, and I OTS is the basic unit of resource management. OTS completes access control and resource metering for applications at the instance level.
  • Node name: Alibaba Cloud service node, the address selected when creating an instance. For example: cn-hangzhou
  • From public: When accessing the public network, the accessed OTSservice address is: http://<instanceName>.<nodeName>.ots.aliyuncs.com. For non-public access, the OTS service address is: http://<instanceName>.<nodeName>.ots-internal.aliyuncs.com.
  • AccessKeyID: The AccessKeyID identifies the AccessKey. OTS performs identity authentication and authentication on requests based on the AccessKey, and every legitimate OTS request must carry the correct AccessKey information. You can get AccessKey from the "Management Console" on Alibaba Cloud's official website. AccessKey includes AccessKeyID and AccessKeySecret:
  • AccessKeySecret: AccessKeySecret is used to encrypt OTS requests. AccessKeySecret is the important credential for authenticating the identity of the request.

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.