S3 was built to store objects. It was never intended to make every object travel halfway around the world for every single request. Yet that’s exactly what happens in many deployments today when clients are not collocated in the same data center. By combining NetApp StorageGRID, F5 BIG-IP, and F5 Distributed Cloud CDN, we can move frequently accessed objects closer to S3 consumers, turning a traditional object storage deployment into a globally accelerated content platform with smart edges.
Supercharge Your BIG-IP S3 Delivery with Easy Global Reach
With F5 BIG-IP, organizations gain a highly available front end capable of load balancing traffic across StorageGRID S3 object storage nodes while providing a convenient control point for traffic management, visibility, and security controls.
Discussions can easily follow a path of bigger clusters, more sites, more load balancers. What if a next step focused upon instead veered towards bringing the data closer to the user?
By combining an existing BIG-IP fronted S3 service with F5 Distributed Cloud, a traditional object storage deployment can be transformed into a globally distributed service. Instead of publishing the BIG-IP virtual server itself directly to the Internet, the S3 application’s FQDN name is projected into the global DNS, mapping to an anycast IP address mapped to the F5 Distributed Cloud global network. With anycast, client requests are routed to the nearest Regional Edge (RE) site, an F5 Point of Presence (PoP), where security inspection and policy enforcement occur before traffic traverses the F5 private backbone toward a Customer Edge (CE) site. Thus, your S3 request traffic ultimately arrives at the BIG-IP virtual server and StorageGRID cluster with little network design complexity and it arrives without delay. Ditto for S3 responses.
F5’s global network is built around a densely peered worldwide backbone, coupled with anycast to bring users to the closest PoP, the net net is your traffic benefits from private network links than relying solely on the public Internet. This solution is offered through distributed HTTP load balancers, the front end is any of the international REs, one is likely closer than you think. The origin pool will in this case be the F5 BIG-IP virtual server that supports S3 delivery to the collocated StorageGRID cluster.
What If Your Storage Cluster Had a CDN?
The F5 Distributed Cloud (XC) HTTP load balancers have traditionally offered simple-to-add security services, valuable add-ons like the F5 WAF engine, a leading anti-bot solution and DDoS capabilities spanning L3 all the way to L7, all are in play. Now, with just a few clicks, in some cases one click, a full CDN service can be enabled. What exactly does this mean? Many of the 30 international XC sites, spanning 21 nations, are equipped with deep caches, meaning repetitive requests for HTTP-delivered content can be served directly to clients. This spells out what any S3 provider would want: quicker delivery of content and less load on the origin S3 cluster.
There are generally two methods of controlling cache behavior when CDN (Content Delivery Network) is slid to the “On” position for an XC HTTP load balancer, which is normally configured for fully encrypted HTTPS support:
1. Immediately follow cache-directives, within HTTP headers, from origin servers such as S3 object servers.
2. Create a rule or two, configured by the XC tenant administrator, to impose caching rules upon matching traffic.For instance, the following rule demonstrates specific content types like .jpeg or .png that will be eligible for serving out of site caches.
In this example above, as shown in step 1 in red, we add a simple caching rule by clicking the pencil icon, this rule looks for extensions including .png and .jpeg. Step 2 depicts resultant cache behavior for rule hits, in this case 24-hour caching is applied.
The 32,000 Foot View - BIG-IP S3 Delivery Infused with Distributed Cloud CDN
The following infographic was prepared showing the key elements of the solution, this article is based upon this configuration in a fully working trial setup. The BIG-IP is located in a private data center in San Jose, California using RFC-1918 private addresses. The Distributed Cloud CE node is the component that facilitates global reachability, by dual connecting to two nearby RE sites using IPSec or TLS secure tunnels (double-click to expand and zoom as required for your browser, this one diagram, in large part, shows the entire article in one image).
The FQDN injected into the global DNS was part of a domain that Distributed Cloud DNS already manages for me, the domain is xc.redsealab.net. As such, the S3 virtual server “yours3.xc.redsealab.net” when created automatically propagated a DNS A resource record mapped to the tenant’s anycast public address. No fuss, no keystroke. Just as convenient, a globally trusted TLS certificate was also automatically configured to secure S3 flows.
The setup sequence is largely just configuring the Distributed Cloud’s HTTP load balancer customer-facing front end instantiated at global RE sites and, in turn, tying that to the origin pool. The origin pool is, of course, simply the BIG-IP S3 virtual server in San Jose. The BIG-IP is configured, as a common practice, to distribute S3 transactions to the StorageGRID by means of a TCP “Least Connections” algorithm. The setup looks like this on BIG-IP:
The S3 service is a secured and performant front end to the object storage through a normal BIG-IP virtual server, a full illustrated setup guide for StorageGRID and BIG-IP can be found here if needed. The NetApp default TCP port of 18082 was maintained and for maximum security, S3 traffic will use TLS on both sides of BIG-IP.
The only new task is to configure a distributed HTTP load balancer on Distributed Cloud, one where the origin pool is simply the BIG-IP S3 virtual server.
Following the numbers in the above screenshot, we (1) set the fully qualified domain name that Distributed Cloud will advertise throughout the global Internet. With (2) the public facing side of the distributed http load balancer is seen to be HTTPS, with automatic certificate to be created, on TCP port 443. Note we are advertising the VIP to the Internet; in a private deployment the option exists to only advertise to other private data centers with CE nodes.
Finally, in step (3) the origin pool is seen. This is a privately housed BIG-IP offering StorageGRID S3 services on the well-known NetApp TCP port of 18082. A key takeaway, the BIG-IP is fully off the Internet, with an RFC-1918 private address; it is only the F5 Distributed Cloud CE node that is facilitating secure access.
Under the Hood: The Proof is in the Cache
There are many S3 clients available for quick testing, from programmatic approaches like Python with the Boto3 library to simple interactive GUIs like S3Browser or CyberDuck. In this rapid investigation S3Browser, downloadable here, was installed on a client and an account configured using the FQDN, an S3 Access Key/Secret and the choice to use TLS (double-click to enlarge).
The target of the tests was the NetApp ONTAP Select user guide, roughly 4 megabytes in pdf format. The cache rule in use in Distributed Cloud instructed that pdf content be served from cache from the point of presence closest to the user. In my case, being located in eastern Canada, the S3 content from the San Jose StorageGRID cluster was emitted by the F5 site located in Montreal. As the crow files, the distance between the S3 cluster in San Jose and the Montreal F5 site is approximately 2,500 miles or 4,000 km.
It was not expected that cache hits would necessarily appear on the second transaction, multiple may be required as the underlying cache storage is a clustered approach with multiple instances of storage in use. The first thing noted is the richness of the modern F5 Distributed Cloud dashboards. For instance, in the following example looking at the HTTP load balancer, the human operator even without CDN enable gets informed advice on how much of their current transaction load could benefit from caching, by simply enabling it.
Since the CDN feature has already been enabled for the “YourS3” HTTP load balancer, we can simply click on the “CDN” button of the dashboard and start to gather live feedback.
We can see that for the time span analyzed, of all S3 transactions handled by the “YourS3” HTTP load balancer, 80 percent of transactions have been served out of a site cache. The richness of the reporting is also visible when drilling into individual transactions, here as an example is a cache miss transaction (double-click to see in higher resolution).
The key takeaways include the fact that F5 Montreal RE point of presence was, as expected, delivering the traffic to the eastern Canada S3 client. This is anycast in action. We see the actual object name, in this case the ONTAP Select pdf manual, and the estimated total transaction time of 3.149 seconds. Now, a subsequent S3 transaction, for the identical object to the same S3 client is analyzed.
In this case, the latency savings is easy to glean, as reflected by the total duration value. We are seeing a total duration of only 0.409 seconds, a great improvement on the earlier cache miss. Beyond just the potential for an improved quality of service, simply having retrospective access to analytics, like the above, are a great win. Compare this with using encrypted tcpdump files at the client, just to try to achieve similar visibility into performance gains with caching from an S3 session on a different day.
A last, holistic view of caching success on the F5 Distributed Cloud http load balancer is available in a consolidated, scrollable view.
A couple of closing comments for those interested in trying this at home or work:
- Caches at regional sites accept objects up to 50 megabytes in size.
- S3 interactions such as S3Client and NetApp StorageGRID may use an HTTP HEAD immediately prior to an HTTP GET to retrieve objects, add a simple “Route” the Distributed Cloud load balancer to have HTTP HEADs bypass CDN and be delivered directly.
- As seen at the top of the last screenshot, even S3 bucket lists (normally implemented with S3 ListObjects primitive) may be cacheable.
- Finally, recall that even without a single Cache rule, the CDN solution when enabled with follow cache directives in origin HTTP headers. As one adds rules, think of this as a “Positive Caching Model", where specific desired file extensions result in caching and others are simply bypassed.
Making S3 Feel Local, Anywhere
At the start of this article, the NetApp StorageGRID deployment and F5 BIG-IP virtual server were accessible only from the local environment in which they were deployed. By introducing F5 Distributed Cloud, that same S3 service became globally reachable through a single DNS name and a globally advertised anycast IP address. Instead of forcing users to locate and connect directly to a data center in San Jose, California, client requests are automatically directed to the closest F5 Distributed Cloud Point of Presence. From there, traffic can be inspected and secured at the edge before traversing the F5 private backbone toward the Customer Edge (CE) site, BIG-IP virtual server, and ultimately the StorageGRID origin. The result is a solution that combines the scale and durability of object storage with a modern application delivery architecture designed for global access.
Equally important is how little effort was required to introduce caching into the design; there is a reason the feature is referred to as “One-Click CDN” in the Distributed Cloud documentation. Once the application was published through F5 Distributed Cloud, CDN functionality could be enabled directly on the load balancer service without requiring changes to the S3 clients, BIG-IP configuration, or StorageGRID deployment. As demonstrated in the examples throughout this article, objects retrieved from the origin became eligible for caching at the edge, allowing many subsequent requests to be served directly from infrastructure located much closer to the client. This reduced round-trip time, improved download performance, and decreased the number of requests reaching the origin environment.
For organizations already using BIG-IP to front-end StorageGRID or other S3-compatible object storage platforms, this approach provides an appealing enhancement. The infrastructure that already exists continues to perform its familiar role, while F5 Distributed Cloud adds global reach, edge security, private backbone connectivity, and high-performance CDN caching. In many ways, the most compelling outcome is also the simplest: popular objects are delivered from locations closer to users, users experience faster response times, and the origin storage platform has less work to do. That’s a rare combination where performance improves while operational load decreases.











