what actions cause the plugin to directly access the S3 bucket via access keys
-
We have been using the WP Offload Media Lite plugin on 100+ sites for a decade now. We were evaluating our S3 costs in AWS by looking at data costs involved with the S3 buckets where our images are stored. While doing so – we noticed that the bytes out from a multisite with about 10 sites on it was 50% that of the bytes out from all the rest of our 100 sites. So, in other words – if our 100 sites had 600GB of data out per day, the 1 multisite had 300GB of data out.
This seemed incredibly disproportional, so we enabled logging on the S3 buckets to attempt to find where the images were being called from. In doing so on the multisite bucket, we found many references where the requester was the AWS ARN for the IAM User associated with the access keys used in the plugin to allow it access to the S3 bucket.
If the plugin was accessing the bucket directly, I assumed this would be just when the plugin is moving an uploaded media gallery item over to the S3 bucket. I also assumed that any other time the site would reference the media item after this, it would simply use the URL from the as3cf_items table. So any items in the S3 access log using the AWS ARN should be for new media library items.
However, we noticed that a lot of these references in the log containing the AWS ARN were for old media library items several years old. So my question is – what other actions (aside from the initial upload) would cause the WP Offload Media Lite plugin to access a media item from the S3 bucket directly using access keys instead of just using the public S3 URL for the media item.
The increase is not due to just the amount of traffic that the sites get. The websites in the multisite do not receive massive amounts of extra visits that could possibly account for the additional resources used. We’re hoping if we can determine what other WordPress actions can cause this – we can find why this multisite in particular is using such a drastic amount of transfer data compared to the rest of the sites in the entire company.
Thank you so much for any help anyone can provide!!
Jim
- The topic ‘what actions cause the plugin to directly access the S3 bucket via access keys’ is closed to new replies.