{'fraction_non_alphanumeric': 0.017810026385224276, 'fraction_numerical': 0.0, 'mean_word_length': 5.772321428571429, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Reconciling Dynamic System Sizing and Content Locality through Hierarchical Workload Forecasting

The cloud has recently surged as a promising paradigm for hosting scalable Web systems serving a large number of users with large workload variations. It makes possible to dynamically add and remove resources to horizontally scalable architectures in order to save costs, while maintaining the quality of service. However, in order to achieve these goals the resource management of a platform must include policies and mechanisms for dynamically resizing the system, redistributing content and redirecting user requests. In this work, we address the problem of reconciling dynamic system sizing and content locality. There are three main contributions of our study. First, we address the problem of determining the system size by employing a hierarchical prediction framework that proactively provisions resources based on statistical models of the incoming workload. Second, we show how to employ the hierarchical prediction framework for designing a dispatching mechanism which can be used with any request distribution policy. Third, we propose two novel prediction-based locality-aware request distribution policies: Oblivious Locality-Aware Request Distribution (OLARD) and Affinity-Based Locality-Aware Request Distribution (ABLARD). We demonstrate the advantages of using our hierarchical prediction framework and how our approach achieves a high content locality, while adapting to unexpected workload changes.