Академический Документы
Профессиональный Документы
Культура Документы
In each queue, WLM creates a number of query slots equal to the queue's
concurrency level.
1. WLM recalculates the memory allocation for each new query slot.
2. If a query slot is not actively being used by a running query, WLM removes the
slot, which makes that memory available for new slots.
3. If a query slot is actively in use, WLM waits for the query to finish.
4. As active queries complete, the empty slots are removed and the associated
memory is freed.
5. As enough memory becomes available to add one or more slots, new slots are
added.
6. When all queries that were running at the time of the change finish, the slot
count equals the new concurrency level, and the transition to the new WLM
configuration is complete.
Example : http://docs.aws.amazon.com/redshift/latest/dg/cm-c-wlm-dynamic-
example.html
Note
• Queries that are running when the change takes place continue to use the original
memory allocation and queries that are queued when the change takes place are
routed to new slots as they become available.
]"
}
]
Rules for Configuring WLM by Using the AWS CLI in the Command Line on
the Linux and Mac OS X Operating Systems
1. The entire JSON structure must be enclosed in single quotation marks (') and
brackets ([ ]).
2. All parameter names and parameter values must be enclosed in double quotation
marks (").
3. Within the ParameterValue value, you must enclose the entire nested structure in
double-quotation marks (") and brackets ([ ]).
4. Within the nested structure, each of the properties and values for each queue
must be enclosed in curly braces ({ }).
5. Within the nested structure, you must use the backslash (\) escape character
before each double-quotation mark (").
6. For name/value pairs, a colon (:) separates each property from its value.
7. Each name/value pair is separated from another by a comma (,).
8. Multiple queues are separated by a comma (,) between the end of one queue's
curly brace (}) and the beginning of the next queue's curly brace ({).
AWS CLI Command
Without Rule