This article will describe the parameters of object storage service connection, FTP service connection and Connection Timeout, so as to correctly Input Parameter information and complete Cloud storage service connection.
Object Storage Service Connection
Huawei Cloud Object Storage Service OBS、Alibaba Cloud Object Storage Service OSS、SeaweedFS Object Storage Service、 MinIO Object Storage Service and object storage service compatible with AWS S3 protocol are all object storage services. To select these Server types, you need to set the following parameters:
Parameter | Explain |
Connection name | The default is the Cloud Storage ", which identifies the Cloud storage service connection. The specified name cannot be the same as the name of an existing connection. The connection name supports Chinese, English, numbers, underscores, dashes, and @ characters, for example: image-cloudstorage @ _ name. |
Server Type | Identifies the Cloud Storage provider. Huawei Cloud Object Storage Service OBS、Alibaba Cloud Object Storage Service OSS、 SeaweedFS Object Storage Service and MinIO Object Storage Service are also compatible with AWS S3 protocol object storage services. After selecting an object storage service compatible with AWS S3 protocol, you can also connect to the above Server Types, except that there is no service provider ID in the Connection Info. |
Service endpoint | Endpoint is used to set the access address of Cloud Storage, which supports two address forms: domain name and IP + port. Parameter value input example:
Caution: The address form of the service endpoint is related to the specific object storage service, and the service endpoint may also be an HTTP or HTTPS access protocol. In Connection Options, set the value of AWS _ HTTPS and specify the correct port number as appropriate. |
Access key | Access key is the access credential for the object bucket, including access keyID and access key. Due to server configuration issues, for example, the MinIO object storage service may only need to provide a login account and password. |
Bucket name | Specifies the name of the bucket in the Object Storage Service. Requires access credentials for the object bucket. Different providers have different definitions. For example, it is called storage space in Alibaba Cloud and bucket in Huawei Cloud. |
Folder | Folders can be set to connect to the specified folder under the object bucket. If not specified, it connects to the root of the object bucket. The object storage service provides virtual folders, that is, the object bucket uses folder structure to manage files. Through this parameter, you can directly connect to the specified folder to facilitate file search after the connection is established. For example, for the bucket "image" connected to the MinIO object storage service, the File Path of the image. TIF in the bucket is "/folder1/folder2/IMG/image. TIF", The connection name for the Add Cloud Storage Connection is Cloud Storage 1. Then set the folder here to "/folder1/folder2", and when using the image. TIF on the desktop side, the File Path can be simplified to "//Cloud Storage1/IMG/image. TIF". If this parameter is not set, when the image. TIF is used, the File Path is "//CloudStorage1/folder1/folder2/IMG/image. TIF" ". |
Connection options | A comparison table of the name (key) and the value (value) is provided in the connection option. Common option information is listed below.
Taking MinIO object storage as an example, the default support format is path request of http://example.com/bucket/object. If you configure MINIO _ DOMAIN (MINIO _ DOMAIN Environment Variable to enable virtual host-style requests), MinIO supports both path-style and virtual host-style requests from the client. Therefore, you need to add AWS _ VIRTUAL _ HOSTING options and specify the correct values based on how the object store configuration supports the request. By default, the MinIO object store uses path requests to access buckets, so you need to add the AWS _ VIRTUAL _ HOSTING = FALSE option. |
FTP service connection
You can connect to the FTP service only based on the service endpoint, user name, and password. The Parameter Description is as follows:
Parameter | Explain |
Connection name | The default is the Cloud Storage ", which identifies the Cloud storage service connection. The specified name cannot be the same as the name of an existing connection. The connection name supports Chinese, English, numbers, underscores, dashes, and @ characters, for example: image-cloudstorage @ _ name. |
Service endpoint | FTP Server Address, for example, 127.0.0.1. |
User name/password | Username and corresponding password to access the FTP service. |
Path | Path can be set to connect to the specified directory in the FTP service. If not specified, it will connect to the root directory of the FTP server. For example, Set Directory:/NFS/gisdata/IMG/will only establish a connection to this directory. After the connection is created, only the files and folder contents in this directory will be displayed under the connection node. |
Connection TimeoutParameter Description
The parameters for Connection Timeout are organized in the Global environment item of the Cloud Storage dialog box. When no new Cloud storage service connection is added, the Connection Timeout parameter can also be modified through this Global environment item, and the modified content will be applied to all connections in real time. The description is as follows:
Parameter | Explain |
HTTP Create Connection Timeout | Timeout for HTTP create connection when connecting to Cloud Storage. |
Total timeout for a single HTTP request | The total timeout time of a single HTTP request when connecting to Cloud Storage. The total timeout time of a single request refers to the total time from the start of the request to the end of the request, including DNS resolution, connection establishment, transmission, etc. |
Retry interval for HTTP | HTTP retry interval when connecting to Cloud Storage. |
Maximum number of HTTP retries | Maximum number of HTTP retries when connecting to Cloud Storage. |
Related topics
Add Cloud Storage Connection Instance
Generate Map Tiles by Multiple Tasks