You may need to configure a number of optional properties for the S3 Connector 2.x to ensure backwards compatibility with S3 Connector 1.x and behavior.
-
dir.contentstoreThe
dir.contentstoreproperty provides backwards compatibility with S3 Connector 1.x.S3 Connector 1.x
S3 Connector 1.x doesn't create S3 object IDs (or paths) that are ideal for high-scale S3 read and write request rates. To help achieve this,
dir.contentstoreshould be ignored except for backwards compatibility reads of existing content stored in Alfresco Content Services.When using S3 Connector 1.x the format of the S3 path is:
/{contentRoot}/{tenant}/[datepath/]{guid}.binWhen
s3.flatRoot=truethe s3 path format is:/{contentRoot}/{tenant}/{guid}.binS3 Connector 2.0
Starting from S3 Connector 2.0
dir.contentstoreis ignored except for backwards compatibility reads.When
flatRoot=truethe s3 path format is:/{tenant}/{guid}.binWhen
flatRoot=falsethe s3 path format is:/{tenant}/{datepath}/{guid.bin}Note
The behavior of existing properties
s3.flatRootanddir.contentstore.deletedis maintained. You can apply the S3 Connector v2.0 to an existing installation where S3 Connector v1.x was previously used without affecting the running of the system. This means existing paths remain as they are, and new paths are generated based on your configuration. -
s3.useTenantDomainInPathAdded in S3 Connector v2.0. When the property value is set to
truethe tenant domain is added to the S3 path. This was the default behavior in S3 Connector v1.x. The change in the default property value is required to achieve an optimal path for high throughput reads and writes where:s3.useTenantDomainInPath=false dir.contentstore= s3.flatRoot=trueYou can apply S3 Connector 2.0 to an existing installation where S3 Connector 1.x was previously used without affect to the running of the system. This means that existing paths remain as they are, and new paths are generated based on your configuration.
Example 1:
When
s3.useTenantDomainInPath=falseands3.flatRoot=truethe s3 path format is:/{guid}.binExample 2:
When
s3.useTenantDomainInPath=falseands3.flatRoot=falsethe s3 path format is:/{datepath}/{guid.bin}