Nexus Blob store and its types2 min read

Prabhin Prabharkaran Administrator
DevOps Engineer

He is a Technical professional. He is a person who loves to share tricks and tips on the Internet. He Posts what he does!

follow me

Nexus Repository Manager helps to create a repository for your organization where you store application artifacts and you can use it as a proxy for public repositories. t supports various formats, such as Maven, APT, and Go

In this article, we will see what is Nexus blob store and what are the available types in Nexus Repository Manager.

Nexus Blob
Nexus Blob is the storage place linked to repository where the repository data are saved. By default, nexus uses the local file system as the blob store. The sonartype-work directory holds the default blobs data.


The configuration for a soft quota can be found in the Blob Stores feature to view, located in the Blob Stores sub-menu of the Administration menu. A soft quota is a feature that monitors a blob store and raises an alert when it exceeds a constraint.

Types of Blob Stores

 

NFS File system

Nexus supports NFS filesystems mounted to the Nexus server as a blob store. Make sure the NFS filesystem version is v4. Older to v4 is not supported by Nexus

Nexus supports the AWS EFS filesystem as a blob store mounted to Nexus Server. AWS EFS performance is low compared to Normal NFS share. EFS also need to mount using NFS v4

AWS Simple Storage Service ( S3 )
Another filesystem supported by Nexus is S3, S3 can be configured using REST API or Nexus Web UI console can be used to configure S3.

The below screenshot is for reference.
Make sure that you have created an IAM user for accessing the s3 bucket.
below is the required policy which needs to be attached to the IAM user to access the bucket.

For configuring s3, make sure that Type is selected as s3.
Name: blob name
Region: s3 bucket region
Bucket: Bucket name
Bucket prefix: folder inside the bucket to store the data
Enable Authentication with Access and Secret Key

Below is the IAM required IAM Policy

{
    "Version": "2012-10-17",
    "Id": "NexusS3BlobStorePolicy",
    "Statement": [
        {
            "Sid": "NexusS3BlobStoreAccess",
            "Effect": "Allow",
            "Principal": {
                "AWS": "<user-arn>"
            },
            "Action": [
                "s3:PutObject",
                "s3:GetObject",
                "s3:DeleteObject",
                "s3:ListBucket",
                "s3:GetLifecycleConfiguration",
                "s3:PutLifecycleConfiguration",
                "s3:PutObjectTagging",
                "s3:GetObjectTagging",
                "s3:DeleteObjectTagging",
                "s3:DeleteBucket",
                "s3:CreateBucket",
                "s3:GetBucketAcl"
            ],
            "Resource": [
                "arn:aws:s3:::<s3-bucket-name>",
                "arn:aws:s3:::<s3-bucket-name>/*"
            ]
        }
    ]
}

It’s recommended that by Nexus that Glusterfs and Fuse file systems are unreliable.

 

 

Happy Learning 🙂

 

© 2020, Techrunnr. All rights reserved.

#1
#2
#3
Questions Answered
Articles Written
Overall Points

Related posts

Leave a Reply