blob: 0b9e9da6359a2c4a40ff7ccbcfb7acaee88e204d [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Provides resource management and queuing support for the Drill foreman.
* The resource manager tracks total resources available to Drill. Several
* implementations are available: a default implementation for systems without
* queueing and an access-controlled (AC) version for systems with queues.
* <p>
* Each resource manager provides a per-query manager that is responsible
* for queuing the query (if needed) and memory allocation to the query based
* on query characteristics and memory assigned to the query.
* <p>
* Provides two different queue implementations. A distributed ZooKeeper queue
* and a local queue useful for embedded Drillbits (and for testing.)
*/
package org.apache.drill.exec.work.foreman.rm;