Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
SYSTEMS AND METHODS FOR AUTO-SCALING A BIG DATA SYSTEM
Document Type and Number:
WIPO Patent Application WO/2016/025924
Kind Code:
A1
Abstract:
Systems and methods for automatically scaling a big data system are disclosed. Methods may include: determining, at a first time, a first optimal number of nodes for a cluster to adequately process a request; assigning an amount of nodes equal to the first optimal number; determining a rate of progress of the request; determining, at a second time based on the rate of progress a second optimal number of nodes; and modifying the number of nodes assigned to the cluster to equal the second optimal number. Systems may include: a cluster manager, to add and/or remove nodes; a big data system, to process requests that utilize the cluster and nodes, and an automatic scaling cluster manager, including: a big data interface, for communicating with the big data system; a cluster manager interface, for communicating with a cluster manager instructions for adding and/or removing nodes from a cluster used to process a request; and a cluster state machine.

Inventors:
SARMA JOYDEEP SEN (IN)
AHUJA MAYANK (IN)
NARYANAN SIVARAMAKRISHNAN (IN)
SHRIKANTH SHANKAR (US)
Application Number:
PCT/US2015/045419
Publication Date:
February 18, 2016
Filing Date:
August 14, 2015
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
QUBOLE INC (US)
International Classes:
G06F9/50
Foreign References:
US8260840B12012-09-04
US20140149590A12014-05-29
US20130318379A12013-11-28
US20140095505A12014-04-03
US20120304192A12012-11-29
Other References:
See also references of EP 3180695A4
Attorney, Agent or Firm:
MURPHY, Gregory, M. (PLLC919 E. Main Street, Ste 100, Richnond VA, US)
Download PDF:
Claims:
[00066] Claims: I claim:

1. A method for automatically scaling a big data system, comprising:

determining, at a first point in time, a first optimal number of nodes for a cluster to adequately process a request;

assigning an amount of nodes equal to the first optimal number of nodes to the cluster to process the request;

determining a rate of progress of the request, and determining if the rate of progress is sufficient to meet any applicable deadline or service level agreement;

determining, at a second point in time and based on the rate of progress of the request, a second optimal number of nodes for the cluster to adequately process the request; and

modifying the number of nodes assigned to the cluster to process the request to equal the second optimal number of nodes. 2. The method of claim 1 , wherein the big data system automatically scaled is sharing hardware with a different type of big data system. 3. The method of claim 2, wherein types of big data system may be selected from the group consisting of Hadoop, Presto, and Spark.

4. The method of claim 1 , wherein it is determined that the rate of progress is insufficient to meet any applicable deadline or service level agreement, and wherein the second optimal number of nodes is greater than the first optimal number of nodes, further comprising:

calculating how many additional nodes are needed; and

assigning the additional nodes to the cluster to process the request. 5. The method of claim 1 , wherein the second optimal number of nodes is less than the first optimal number of nodes, further comprising:

requesting a number of nodes equal to the difference between the first optimal number of nodes and the second optimal number of nodes be quiesced; and

terminating the quiesced nodes from the cluster. 6. The method of claim 5, further comprising:

before terminating any quiesced nodes from the cluster, determining when a node requested to be quiesced has completed any assigned processing or task; and

upon determination that the node requested to be quiesced has not completed any assigned processing or task, allowing the node requested to be quiesced to complete any assigned processing or task before terminating the node from the cluster. 7. The method of claim 6, wherein the big data system automatically scaled is sharing hardware with a different type of big data system.

8. The method of claim 7, wherein the step of determining when a node requested to be quiesced has completed any assigned processing or task comprises determining if a node has completed any assigned processing or task for any of the big data systems operating on the hardware. 9. A method of automatically down-scaling nodes assigned to a cluster to process a request in a big data system, comprising:

identifying each node in a cluster as being in a state of: unknown, running, requested for quiesce, or quiesced;

reassigning the state of a node previously identified as unknown as requested for quiesce if such node remains in the unknown state for longer than an acceptable amount of time;

determining if nodes requested for quiesce have completed any assigned processing or tasks, and upon such completion reassigning such nodes to a quiesced state;

terminating from the cluster any nodes in a quiesced state. 10. The method of claim 9, wherein a specific node may be identified as being in an unknown state if the big data system is not aware of the specific node. 11. The method of claim 9, wherein if an unknown node is reassigned as requested for quiesce due to being in an unknown state for longer than the acceptable amount of time, the node is considered bad, and will not be used by the cluster if the cluster needs to subsequently upscale.

12. The method of claim 9, wherein a node may be requested for quiesce if the node is idle, approaching a lease boundary, or if an alternative node is less expensive than a current node. 13. The method of claim 9, wherein the nodes are terminated from the cluster by a remover service that deletes the nodes from the cluster. 14. A system for automatically scaling a big data system, comprising:

an automatic scaling cluster manager, comprising:

a big data interface, for selectively communicating with the big data system; a cluster manager interface, for selectively communicating with a cluster manager instructions for adding and/or removing nodes from a cluster used to process a request; and

a cluster state machine;

a cluster manager, configured to add and/or remove nodes; and

a big data system, configured to process requests that utilize the cluster and nodes. 15. The system of claim 14, wherein the big data system communicates with the automatic scaling cluster manager its view of the cluster and responsive nodes. 16. The system of claim 14, wherein the cluster manager communicates with a cloud provider in order to procure or delete nodes, as instructed by the automatic scaling cluster manager. The system of claim 14, wherein the cluster state machine comprises:

a refresher service, that compares nodes identified by the cluster manager and the big data system in order to identify bad nodes;

a decision service, that determines when additional nodes are necessary to scale up, or when nodes may be terminated;

a quiescer service, that may transition nodes that are identified to be quiesced from a working state to termination by the cluster manager. 18. The system of claim 17, wherein the auto-scaling cluster manager may identify nodes in states of: unknown, running, requested for quiesce, and quiesced. 19. The system of claim 18, wherein:

the refresher service is configured to transition nodes from unknown to running, or unknown to requested for quiesce;

the decision service is configured to transition nodes from running to requested for quiesce; and

the quiescer service is configured to transition nodes from requested for quiesce to quiesced, at which point the nodes are removed from the cluster. 20. A method for automatically scaling hardware used to process transactions for multiple big data systems running on the same hardware, comprising: determining, at a first point in time, a first optimal number of nodes for a cluster to adequately process a request;

assigning an amount of nodes equal to the first optimal number of nodes to the cluster to process the request;

determining, a rate of progress of the request;

determining, at a second point in time and based on the rate of progress of the request, a second optimal number of nodes for the cluster to adequately process the request; and

modifying the number of nodes assigned to the cluster to process the request to equal the second optimal number of nodes, wherein:

if the second optimal number of nodes is greater than the first optimal number of nodes, assigning addition nodes to the cluster to process the request; or

if the second optimal number of nodes is less than the first optimal number of nodes, requesting a number of nodes equal to the difference between the first optimal number of nodes and the second optimal number of nodes be quiesced; and

determining if a node to be quiesced has completed any assigned processing or task for any of the big data systems operating on the hardware; and

if the node requested to be quiesced has not completed any assigned processing or task, allowing the node requested to be quiesced to complete any assigned processing or task before terminating the node from the cluster; or

if the node requested to be quiesced has completed any assigned processing or task for any of the big data systems operating on the hardware, terminating the quiesced nodes from the cluster.

21. The method of claim 20, wherein the first optimal number of nodes and the second optimal number of nodes are determined based upon any applicable deadline or service level agreement (SLA). 22. The method of claim 21 , wherein each big data system determines whether it has enough nodes to meet any applicable deadline or SLA relevant to each big data system. 23. The method of claim 20, further comprising:

saving the state of nodes requested to be quiesced in an alternate location comprising other nodes, the big data system, or an external data store; and

informing the other nodes of the alternate location.

Description:
SYSTEMS AND METHODS FOR AUTO-SCALING A BIG DATA SYSTEM

Field of the Invention

[0001] In general, the present invention is directed to a system and method for auto- scaling a big data system comprising a master computer and a plurality of worker nodes. More specifically, the present invention is directed to systems and methods for automatically scaling a big data system in order to utilize additional resources when available, release unneeded nodes in a manner that does not impact current jobs or queries, and/or deal with transient failures of master or worker nodes. Background

[0002] The term "Big Data" generally refers to a collection of data sets that may be difficult to process using traditional data processing applications due to its size and/or complexity. Due to its size, processes to capture, process, manage, and/or curate the data within a reasonable time may be quite difficult. Big Data has been defined to include a high volume of data, high velocity processing speed, high variety of information, and high veracity or accuracy of information and analytics. [0003] Big Data may be utilized in virtually any service or product. Ranging from science and research applications (such as, for example, data collected by the Large Hadron Collider, or information related to the human genome) to those in everyday life (such as, for example, services provided by Facebook, Amazon, eBay), the ability to process Big Data and determine meaningful conclusions therefrom is becoming a necessity. According to a 2013 study, Big Data and its analytics is on average the 9 th priority for the 2,053 Chief Information Officers surveyed. (See Gartner Executive Program Survey, 2013). [0004] As Big Data has grown, computing resources necessary to efficiently handle such data is required. Due to certain constraints - ranging from cost to physical space - cloud computing has provided resources that can be tapped in order to process Big Data. Big Data systems may be quite powerful and may process petabytes of data and run on upwards of thousands of machines. However, there are periods when such systems are underutilized and other periods when such systems are over-taxed. Accordingly, it is desirable to have a Big Data system that can be adapt to workload and scale up and down, thereby leading to better utilization of resources and reducing costs. [0005] Cloud computing has what can be referred to as an elastic property, in that virtual machines in the cloud can be used on-demand on an as-needed basis, thereby providing resources that are suitable for specific processing tasks or functions. However, the flexibility of resources in a cloud computing environment can be difficult to control. Determining the proper amount of resources at the outset of an activity can be difficult, particularly when the loads of certain applications fluctuate. Accordingly, it is desirable to provide systems and methods that can auto-scale a Big Data system in order to (i) use more resources; (ii) utilize additional machines when available; (iii) select and release nodes; (iv) release nodes in manners so as to not impact current jobs or queries; and/or (v) deal with transient failures, including restarts, of master or worker nodes. Summary of the Invention

[0006] Aspects in accordance with some embodiments of the present invention may include a method for automatically scaling a big data system, comprising: determining, at a first point in time, a first optimal number of nodes for a cluster to adequately process a request; assigning an amount of nodes equal to the first optimal number of nodes to the cluster to process the request; determining, a rate of progress of the request; determining, at a second point in time and based on the rate of progress of the request, a second optimal number of nodes for the cluster to adequately process the request; and modifying the number of nodes assigned to the cluster to process the request to equal the second optimal number of nodes.

[0007] Other aspects in accordance with some embodiments of the present invention may include a method of automatically down-scaling nodes assigned to a cluster to process a request in a big data system, comprising: identifying each node in a cluster as being in a state of: unknown, running, requested for quiesce, or quiesced; reassigning the state of a node previously identified as unknown as requested for quiesce if such node remains in the unknown state for longer than an acceptable amount of time; determining if nodes requested for quiesce have completed any assigned processing or tasks, and upon such completion reassigning such nodes to a quiesced state; terminating from the cluster any nodes in a quiesced state.

[0008] Some other aspects in accordance with some embodiments of the present invention may include a system for automatically scaling a big data system, comprising: an automatic scaling cluster manager, comprising: a big data interface, for selectively communicating with the big data system; a cluster manager interface, for selectively communicating with a cluster manager instructions for adding and/or removing nodes from a cluster used to process a request; and a cluster state machine; a cluster manager, configured to add and/or remove nodes; and a big data system, configured to process requests that utilize the cluster and nodes.

[0009] Some other aspects in accordance with some embodiments of the present invention may include a method for automatically scaling hardware used to process transactions for multiple big data systems running on the same hardware, comprising: determining, at a first point in time, a first optimal number of nodes for a cluster to adequately process a request; assigning an amount of nodes equal to the first optimal number of nodes to the cluster to process the request; determining, a rate of progress of the request; determining, at a second point in time and based on the rate of progress of the request, a second optimal number of nodes for the cluster to adequately process the request; and modifying the number of nodes assigned to the cluster to process the request to equal the second optimal number of nodes, wherein: if the second optimal number of nodes is greater than the first optimal number of nodes, assigning addition nodes to the cluster to process the request; or if the second optimal number of nodes is less than the first optimal number of nodes, requesting a number of nodes equal to the difference between the first optimal number of nodes and the second optimal number of nodes be quiesced; and determining if a node to be quiesced has completed any assigned processing or task for any of the big data systems operating on the hardware; and if the node requested to be quiesced has not completed any assigned processing or task, allowing the node requested to be quiesced to complete any assigned processing or task before terminating the node from the cluster; or if the node requested to be quiesced has completed any assigned processing or task for any of the big data systems operating on the hardware, terminating the quiesced nodes from the cluster.

[00010] These and other aspects will become apparent from the following description of the invention taken in conjunction with the following drawings, although variations and modifications may be effected without departing from the spirit and scope of the novel concepts of the invention. Brief Description of the Drawings

[00011] The present invention can be more fully understood by reading the following detailed description together with the accompanying drawings, in which like reference indicators are used to designate like elements. The accompanying figures depict certain illustrative embodiments and may aid in understanding the following detailed description. Before any embodiment of the invention is explained in detail, it is to be understood that the invention is not limited in its application to the details of construction and the arrangements of components set forth in the following description or illustrated in the drawings. The embodiments depicted are to be understood as exemplary and in no way limiting of the overall scope of the invention. Also, it is to be understood that the phraseology and terminology used herein is for the purpose of description and should not be regarded as limiting. The detailed description will make reference to the following figures, in which: [00012] Figure 1 sets forth a diagram depicting the use of various nodes with pending units of work remaining, in accordance with some embodiments of the present invention.

[00013] Figure 2 illustrates an exemplary architecture and design of an auto-scaling Big Data system, in accordance with some embodiments of the present invention.

[00014] Figure 3 depicts various transitions that a node may encounter in a cluster state machine in accordance with some embodiments of the present invention.

[00015] Figure 4 illustrates an exemplary decision service module for determining the optimal number of nodes necessary at a point in time, in accordance with some embodiments of the present invention.

[00016] Figure 5 illustrates potential components of a rest application program interface (API), in accordance with some embodiments of the present invention.

[00017] Figure 6 illustrates an exemplary distributed file system where each node holds on to data blocks, in accordance with some embodiments of the present invention.

[00018] Before any embodiment of the invention is explained in detail, it is to be understood that the present invention is not limited in its application to the details of construction and the arrangements of components set forth in the following description or illustrated in the drawings. The present invention is capable of other embodiments and of being practiced or being carried out in various ways. Also, it is to be understood that the phraseology and terminology used herein is for the purpose of description and should not be regarded as limiting. Detailed Description of the Invention

[00019] The matters exemplified in this description are provided to assist in a comprehensive understanding of various exemplary embodiments disclosed with reference to the accompanying figures. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the exemplary embodiments described herein can be made without departing from the spirit and scope of the claimed invention. Descriptions of well-known functions and constructions are omitted for clarity and conciseness. Moreover, as used herein, the singular may be interpreted in the plural, and alternately, any term in the plural may be interpreted to be in the singular. [00020] In general, a Big Data system may comprise a master computer and a plurality of worker nodes working cohesively to achieve a single goal. For example, a master computer may work with a plurality of worker nodes to execute a query in a distributed fashion. In order to effectuate this task, the execution of the query (or other jobs) may be broken into small units and assigned to individual nodes. Each node may then process one or more units at a time and receive more work when the node is free. [00021] With reference to Figure 1, a graphic representation of a system 10 in which a job is submitted that may be handled by multiple nodes. System 10 may comprise four nodes: node 1 - 120, node 2 - 130, node 3 - 140, and node 4 - 150. Each node may offer two units of processing capability. It can be seen that job 1 10 may require ten (10) units of processing. Nodes 1 -3 each are currently shown to be processing two (2) units a piece, while node 4 processes a single unit. There are still three (3) pending units 111 that will be distributed amongst nodes 1-4 when they are free. Accordingly, it can be seen that an additional node would help speed up the overall response time of ob 110, as each node working at capacity would only have to process two (2) units. [00022] Accordingly, it can be seen from Figure 1 that the ability to adapt nodes to certain demands of processing and/or work is highly desirable in order to increase efficiency while reducing time required and, relatedly, cost required. [00023] With reference to Figure 2, a system 20 in accordance with some embodiments of the present invention will now be discussed. System 20 may be used to auto-scale systems used to process Big Data. System 20 may comprise, in general, a Big Data System 210, a cluster manager 220, Rest APIs 230, and Auto-Scaling Cluster Manager 240. [00024] Big Data system 210 may comprise a big data system - such as, for example, Hadoop, an open source Apache licensed implementation of MapReduce, a programming model and associated implementation for processing large data sets based on work by Google. In general, MapReduce takes a single programming task (termed a map task) and divides it into subtasks (which may be identical) that is distributed amongst multiple machines, or nodes. This framework may provide a parallel processing model in which queries are split and distributed across parallel nodes and processed in parallel (that is, "Map"), and then gathered and delivered (that is, "reduced"). Note that as Big Data sets grew, query latency often similarly grew. [00025] Alternatively, Big Data system 210 may be, for example, Presto. In general, Presto is a distributed system that runs on a cluster of machines, including a coordinator and multiple workers. More specifically, Presto is a distributed SQL query engie that may be optimized for ad-hoc analysis at interactive speed. Queries may be submitted to the coordinator, which may parse, analyze, and plan a query execution, and then distribute the processing to the worker nodes. Unlike MapReduce, Hadoop, and Hive, Presto may utilize a customer query and execution engine with operators designed to support SQL semantics. In this manner, all processing may be in memory and pipelined across the network between stages. This pipelined execution model may run multiple stages at one time, and stream data from one stage to the next as it becomes available. In this manner, unnecessary input/output (I/O) and or associated latency overhead may be avoided, and end-to-end latency for various queries may be greatly reduced. Note that Presto may be utilized to access data stored in Hive, Hadoop Distributed File System, Amazon Web Services, relational database management systems, and other data sources. [00026] With continued reference to Figure 2Big Data system 210 may perform, for example, (i) getClusterInfo() 251 with refresher service of the Auto Scaling Cluster Manager; (ii) getProgressReportO 252 with the PRProcessor of the Auto Scaling Cluster Manager; and (iii) quesce(). Each of these will be discussed below. [00027] Big Data system 210 may interact with Auto Scaling Cluster Manager 240 to perform multiple tasks. For example, the Auto Scaling Cluster Manager 240 may require the following contract from the Big Data System 210: Public interface BigDataSystem {

Public Clusterlnfo getClusterInfo():

Public void quiesce(String nodeld);

Public ProgressReport getProgressReportO;

} [00028] Big Data System 210 may communicate with the cluster manager 220. Big Data system 210 may be responsible for sharing its view of the cluster. Note that in accordance with some embodiments of the present invention, some nodes returned by the cluster manager 220 may be "bad," and may not be identified or listed by the Big Data system 210. The RefresherService 241 may compare lists between the Big Data system 210 and the Cluster Manager 220 in order to identify bad nodes. [00029] "getProgressReportO" 252 may provide a report indicating how much work is left in the system. A progress report may comprise a number of work reports, wherein each work is typically a query or a job). Every work may indicate how many units are unassigned to any node, and how many units have been assigned to each node. An exemplary progress report is repeated below. {

"when" : "2014-07-21 14:27:44,"

"workReports":[{

"workld" : "wl"

"left" : 40

"running" : {

"nl" : l,

"n2" : 2

},

"started" " 2014-07-23 15:37:56"

},{

"workld" : "w2"

"left" : 50

"running" : {

"nl" : 2,

"n2" : 1

},

"started" : "2014-07-23 "16:34:36"

}] [00030] In a Presto environment, each workload may correspond to a query. "Left" may correspond to pending source splits and "Assigned" may correspond to a split being executed by a node. In a Hadoop environment, running units on a node may correspond to a number of map or reduce tasks on the node for a particular job. [00031] Note that the Big Data system 210 must support a quiesce operation in order to disable a node. Once the Big Data system 210 has requested to quiesce a node, the node will eventually stop receiving any work and will only complete existing work assigned to the node. Once the Big Data system 210 is requested to quiesce a node (as discussed below), the number of running units of work in such node should eventually decrease to zero (0). Once the number of running units of work becomes zero (0), the node is no longer being used by the system. This would be evident from the progress report. [00032] Note that nodes may be quiesced and removed for any number of reasons. For example, a node may be quiesced if it is idle, if - in the case where nodes may be purchased, rented, or leased in discrete time periods - the node is approaching a lease boundary, or if there are alternative nodes that are less expensive. [00033] Cluster manager 220 may be responsible for communicating with a cloud provider (for example, a public cloud provider) in order to procure or delete nodes. Cluster manager 220 may also obtain a full list of nodes that it believes are part of the cluster. The cluster manager 220 may be, for example, based on hustler that may work in the context of Amazon Web Services. [00034] Cluster manager 220 may comprise the following APIs: Public interface ClusterManager {

Public void addNodes(int count) throws IOException;

Public void deleteNodes(collection<String>nodelds) throws IOException;

Public Clusterlnfo getClusterInfo() throws IOException;

} [00035] These APIs can be seen in Figure 2. At reference numeral 251 API "getClusterlnfoO" can be seen interacting between Cluster Manager 220 and Auto-Scaling Custer Manager 240. At reference numeral 254 API to addNodes() can be seen, and at reference numeral 255 the API to remove() nodes can be seen, each interacting between the Cluster Manager 220 and the Auto-Scaling Cluster Manager 240. [00036] The system 20 may further comprise a module that may permit auto-scaling, even in a Presto environment. The Auto-Scaling Cluster Manager 240 may comprise a cluster state machine 245 that may capture the state of every node in the cluster. A cluster state machine 245 may provide information such as set forth in the Table below. [00037] Note that the "state" in the table above is noted as "running." With reference to Figure 3, it is noted that a node can be in any number of state transitions. [00038] A node is considered Unknown (at reference numeral 310) if Cluster Manager 220 reports its existence, but Big Data system 210 does not know about it. If Big Data system 210 reports that it knows the node via a progress report, the node may be identified as being in the Running state (reference numeral 320). The RefresherService 321 is responsible for making such transitions. If a node is stuck in Unknown state for too long, the node may be deemed a bad node and may be be transitioned to Quiesce req (reference numeral 330) by the Refresher module (shown at reference numeral 241 in Figure 2).

[00039] The DecisionService 323 may determine when additional nodes are necessary or desirable to scale up or when nodes can be let go. Often, the DecisionService When DecisionService 323 determines that a node is no longer necessary, it may change state of the node to Quiesce req (reference numeral 330). In this manner, the Big Data system 210 may eventually finish all the work on that node. The QuiescerService 324 may transition nodes from Quiesce_req state (reference numeral 330) to Quiesced state (reference numeral 340) when a progress report indicates that the node is not doing any work.

[00040] A node in Quiesced state (reference numeral 340) may be picked up by RemoverService 325 which may call into ClusterManager.deleteNodes method to terminate the node.

[00041] Whenever a node is transitioned into Quiesce req (reference numeral 330) state, this may be noted in an external file (hosts.quiesce req). If the Auto Scaling Cluster Management service is restarted for any reason, it will relearn the nodes in this state. Because the Big Data System 210 may have started the procedure of quiescing nodes (in order to efficiently only utilize nodes when needed), the Auto Scaling Cluster management service must relearn the nodes where left off.

[00042] Note that in accordance with some embodiments of the present invention, when a node is quiesced, its state may be saved. Such state may be stored on the big data system itself, or to an external database (such as Amazon's Simple Storage Service ("3S")). In such situations, other nodes may be made aware of the alternate location of the saved data. Accordingly, some nodes may be discarded and reconstructed at a later point if required.

[00043] With reference to both Figures 2 and 3, the Auto Scaling Cluster Management 240 may further comprise a refresher module 241 , which may periodically communicate with the Cluster Manager 220 in order to get information regarding clusters (i.e., getClusterInfo()). The refresher module 241 may further check with the Big Data system 210 in order to identify new nodes and/or bad nodes, and transition nodes to states of (i) unknown; (ii) running; or (iii) quiesced_req, as discussed above with regard to Figure 3. Refresher module 241 may perform the Refresher Service 321, 322, as set forth in Figure 3. [00044] With reference to both Figures 2 and 3, the Auto Scaling Cluster Management 240 may further comprise a Decision Service module 244. The decision service module 244 may determine the optimal number of nodes necessary at every point in time based on the rate of progress of the processing action (query, job, etc.) in the Big Data system 210. [00045] With reference to Figure 4, the decision service module may be graphically depicted as reference numeral 40. Decision service 40 may note, at time to that two (2) nodes 411 may be used. Such nodes may be running (as shown at 421), and may have completed two units of work (shown at 422). At time t 1? three (3) nodes 412 may be utilized, at which point three (3) nodes may be running (shown at 431) and may have completed three (3) units of work. Two (2) units of work may still be pending (shown at 401). [00046] A completion rate per node may be calculated or determined for each task, or work ID: CR (completion rate) = (tl .pending + tl .running - tO.pending - tO.running) / (tl-tO) N (number of nodes) = (tO.N + tl .N)/2

CRN (completion rate per node) = CR/N [00047] The maximum number of optimal nodes necessary may be calculated across all works (or queries) to determine the optimal number of nodes in the cluster. Ignoring works where the completion rate is approximately zero (0) or where the work started less than five (5) seconds ago (since such work is too new to provide meaningful data as to completion rate per node). The optimal size is determined by a minimum and maximum of cluster settings. [00048] With renewed reference to Figures 2 and 3, if the Decision Service Module 244 calculates an optimal size is greater than the current size, the cluster manager 220 may be requested for more nodes via the adder module 242. Alternatively, if the optimal cluster size is less than the current cluster size and a node is reaching an hour boundary, the decision service module 244 may call the quiescer 248 onto the identified node. This action may inform the Big Data system 210 to quiesce the node and transition the node into the Quiesce Req state. Decision Service module 244 may perform the Decision Service 323, as set forth in Figure 3. [00049] The Auto Scaling Cluster Management module 240 may further comprise a quiescer module 246 and a remover module 243. The quiescer module 246 may perform the Quiescer Service 324 as set forth in Figure 3. This Quiescer Service 324 may look at nodes in the Quiesce Req state to determine if such nodes have any running units. If the nodes in the Quiesce Req state do not have any running units, such nodes may be transitioned into the Quiesced state. [00050] The remover module 243 may look for nodes in the Quiesced state and call cluster manager 220 to utilize its deleteNodes() function to terminate such nodes. This can be seen at 325 in Figure 3. Note that in accordance with some embodiments of the present invention, the remover module 243 may group a number of nodes in a single call to the cluster manager 220. [00051] With renewed reference to Figure 2, the system 20 may further comprise Rest APIs 230. Rest APIs 230 may be utilized to (i) inspect the current state of the Auto-Scaling Cluster Manager 240, and (ii) manually add or quiesce nodes.

[00052] With reference to Figure 5 the Rest APIs may comprise at least two resources, entitled ASCluster and AS Worker. Worker 510 may comprise a task resource 511, which may comprise Auto Scaling (AS) Worker Resource 512. This API may be summarized in the Table below.

[00053] Coordinator 520 may comprise a query resource 521, stage resource 522, and auto- scaling (AS) cluster resource 523. The AS Cluster Resource may comprise the following APIs, summarized in the table below.

[00054] Restarts of systems and jobs may be problematic. Note that in accordance with some embodiments of the present invention, worker nodes can be restarted without issues, as they do not include an auto-scaling state. The coordinator function may restart with nodes being marked in the Unknown state. The Auto Scaling Cluster Management module may then review the current state of nodes by re-readhosts.quiesce_req, and accordingly restore the state of nodes that were marked as Quiesce Req. [00055] As noted above, the Auto Scaling Cluster Management module 240 works with Big Data systems 210, which may include, for example, those in a Presto or Hadoop environment. When the Auto Scaling Cluster Management module 240 works with Presto, the getProgressReport() and getClusterInfo() processes involve traversing existing data structures within Presto. However, the quiesce() function requires task-scheduling changes. [00056] For example, if one or more nodes are being added, NodeScheduler.createNoteSelector may call into DiscoveryNodeManager (which is existing functionality in Presto) periodically in order to refresh the list of available nodes. New nodes may then start processing tasks from new queries, while running queries may only take advantage of new nodes at the source partitioned stages. [00057] If nodes are not in a running state in a Presto environment, the DiscoveryNodeManager may be changed to filter out all nodes that are not in a running state. Accordingly, no new tasks will be assigned to such nodes. [00058] A Presto task may move to a finished state only after its output has been completely consumed by ExchangeOperators upstream. Once the coordinator learns that a task is done (FINISHED, CANCELED, or FAILURE), the task is not polled again for its state. If all tasks in a Stage are complete, the Stage is marked as complete. Therefore, if a node has no tasks in PLANNING or RUNNING states, it is safe to remove the node. [00059] When the Auto Scaling Cluster Management module 240 works with Hadoop, auto scaling requires coordination between the execution engine of Hadoop (MapReduce) and its storage system (Hadoop Distributed File System, or "HDFS"). A centralized process may keep track of all currently running tasks so that a progress report can be compiled from such data structures. The Quiesce() implementation is similar to that in a Presto environment - quiesced nodes are taken out of consideration for a Hadoop job. [00060] In the HDFS subsystem, each node holds on to data blocks. A data block is replicated any number of times to withstand failure of machines or disks. With reference to Figure 6, a cross- hatched or shaded block may be replicated on two (2) nodes (node 2 - 620, node 3 - 630), while a white or unshaded block may be replicated on three (3) nodes (node 1 - 610, node 2 - 620, node 4 - 640). A node may only be quiesced when it does not contain any unique blocks - that is, when blocks are only present in such node. Similarly, a set of nodes may not be quiesced if there is no copy of the block outside of the set of nodes. This prevents unintended loss of data. [00061] With continued reference to Figure 6, Node 3 - 630 may be removed and taken out of action (since the same process is occurring at node 2), but node 2 -620 and node 3 - 630 cannot be taken out of action at the same time because none of the other nodes contain the cross-hatched or shaded block. [00062] The quiesce() implementation in this sub-system may ensure that such a block is copied over to one of the set of stable nodes. Stable nodes are never chosen or selected by the auto-scaling cluster manager for quiescing. The getProgressReport() implementation may return a number of blocks that are in the process of being copied out of the nodes. [00063] Note that in accordance with some embodiments of the present invention, the techniques and systems described herein may be used to automatically scale multiple Big Data systems running on the same hardware. Similarly, some embodiments of the present invention can be utilized to automatically scale hardware in the presence of multiple big data systems. Accordingly, hardware may be running Hadoop, Presto, Spark, and/or any other type of data system, and may still be auto- scaled in the presence of such systems. [00064] For example, a node may be running Hadoop worker and Presto worker. Because each Big Data system sends a progress report, it can be determined - using systems and methods in accordance with some embodiments of the present invention discussed above - if any of the Big Data systems are not making sufficient progress, or if a node is being under-utilized by any of the Big Data systems. If progress is not sufficient or adequate, more nodes can be added (i.e., upscaling). If a node is being under-utilized, then all of the Big Data systems using the node may be requested to quiesce the node. Once each of the Big Data systems (e.g., Hadoop and Presto) quiesce the node, the node can be removed (i.e., down-scaling. In this manner, the same mechanics discussed above can be utilized to automatically upscale or downscale a cluster with multiple Big Data systems. [00065] It will be understood that the specific embodiments of the present invention shown and described herein are exemplary only. Numerous variations, changes, substitutions and equivalents will now occur to those skilled in the art without departing from the spirit and scope of the invention. Similarly, the specific shapes shown in the appended figures and discussed above may be varied without deviating from the functionality claimed in the present invention. Accordingly, it is intended that all subject matter described herein and shown in the accompanying drawings be regarded as illustrative only, and not in a limiting sense, and that the scope of the invention will be solely determined by the appended claims.