Tag: Application Load Balancer

  • The JVM Pause That Wasn’t: A War Story

    The JVM Pause That Wasn’t: A War Story

    In the realm of high-performance computing, the quest to identify and eliminate bottlenecks is a never-ending pursuit. However, sometimes the most perplexing issues arise from unexpected sources. One such tale that stands out in my memory is the saga of a seemingly invisible clash between the JVM’s garbage collector and the server’s disk, unleashing 15+ second, stop-the-world (STW) pauses on a service that juggled millions of requests per second.

    The Mystery: The 503 Spikes

    Picture this: a large-scale Java service meticulously crafted to handle a deluge of user requests at lightning speed. Despite its robust design geared for extreme throughput, the tranquility of its operation was intermittently shattered by spikes in load balancer timeouts. These erratic spikes cast a shadow of frustration, leading to the dreaded 503 responses being served to the users at the most inconvenient times.

    Stay tuned for the unraveling of this gripping war story as we dive deeper into the heart of the issue, dissecting the intricate dance between the JVM’s garbage collector and the server’s disk that laid the groundwork for this unforeseen ordeal.

  • How to Use ALB as a Firewall in IBM Cloud

    In the realm of IBM Cloud VPC, the need for a network firewall that sieves through traffic based on hostnames might arise. Picture a scenario where you wish to greenlight access solely to websites like www.microsoft.com and www.apple.com, while slamming the door on all other cyber destinations.

    IBM Cloud, unfortunately, doesn’t roll out the red carpet for a managed firewall service. Yet, fear not, for there is a workaround in the form of a bring-your-own-firewall strategy. This tactic allows integration with renowned vendors like Fortinet or Juniper. However, the onus of deploying and tending to these solutions falls squarely on the customers’ shoulders.

    So, how can one navigate this terrain effectively? The answer lies in leveraging the Application Load Balancer (ALB) as a makeshift firewall within IBM Cloud. ALB, typically used for distributing incoming traffic across multiple targets, can be repurposed ingeniously to filter traffic based on hostnames.

    By configuring rules within the ALB, you can cherry-pick the allowed hostnames, such as www.microsoft.com and www.apple.com, effectively creating a virtual barricade that thwarts access to undesired websites. This innovative approach not only safeguards your network but also showcases the versatility of ALB beyond its conventional load-balancing duties.

    To set the stage for this transformation, start by creating an ALB instance within your IBM Cloud VPC. Once the ALB is up and running, delve into the intricacies of its rule-setting capabilities. Craft rules that specifically target the hostnames you aim to permit or restrict access to. By tailoring these rules judiciously, you sculpt a customized firewall that aligns with your precise security requirements.

    Moreover, this method offers a cost-effective alternative to traditional firewall solutions. By harnessing the ALB’s innate functionalities in an unconventional manner, you sidestep the need for additional firewall services, thus optimizing both cost efficiency and resource utilization within your IBM Cloud environment.

    In conclusion, while IBM Cloud may not hand you a ready-made firewall service on a silver platter, the ALB emerges as a versatile ally in fortifying your network defenses. By embracing its latent capabilities and reshaping its role as a hostname-based traffic filter, you not only bolster your cybersecurity posture but also showcase the ingenuity of repurposing existing tools to meet evolving security challenges. So, next time you navigate the labyrinth of IBM Cloud VPC security, remember: with a touch of creativity, your ALB can stand tall as a stalwart firewall guardian.