1. Introduction
The study of multi-server queueing systems in most cases assumes the servers to be homogeneous when the individual service rates are the same for all the servers in the system. However, in many real applications, the assumption of the homogeneity cannot be valid, e.g., a group of servers with different types of processors as a consequence of irregular system updates, nodes in telecommunication networks with links of different unequal capacities and availability, nodes in wireless systems serving different mobile users, peer-to-peer services for data streaming, file sharing and storage, where heterogeneous servers arrive and depart randomly, multi-processor systems with heterogeneous processor’s attributes like a throughput and an electric energy consumption, etc. Moreover, in many cases the heterogeneous server system outperforms its homogeneous server counterpart. This reality leads to necessity to analyse multi-server queueing systems with heterogeneous servers. The assumption of the heterogeneity of servers does not automatically mean that the stochastic modelling of such a queueing system becomes more complex. If the customers can change the server to a faster one during a service, in other words, the service is with a preemption, this is a classic one-dimensional birth-and-death process, that can be analysed in a standard way. The task of analysing a heterogeneous system becomes much more complex with the assumption that the customer cannot change the server during a service time, i.e., service without any preemption. In this case, on the one hand, the dimension of the corresponding random process increases and on the other hand, a mechanism for allocation of customers between the servers must be introduced.
The systems with heterogeneous servers are mostly investigated with respect to heuristic allocation policies, e.g., allocation according to the fastest server first (FSF) policy or the randomly chosen server (RCS). The results dedicated to the heterogeneous systems operating under these policies and some approximations of such models can be found in papers of Alves et al. [
1], Bilgen and Altintas [
2], Melikov et al. [
3], The question of how to allocate the customers between the heterogeneous servers in order to minimize the mean number of customers in the system was studied for the queueing system with two servers in terms of a Markov decision process (MDP), e.g., by Larsen [
4], Larsen and Agrawala [
5], who conjectured the optimality of threshold policy that functions as follows: the fastest server must be used whenever it is idle and the slower one must be used only if the number of customers in the queue exceeds some prespecified threshold level
. Based on the MDP model, Lin and Kumar in [
6] considered a similar problem and proved the optimality of a threshold policy. Simple proofs of corresponding results have later been given by Koole [
7], Luh and Viniotis [
8], Walrand [
9] and Weber [
10]. The problem of an optimal control of a two-server queueing system with failures was studied by Özkan and Kharoufeh [
11]. The problem of the optimal control allocation in the systems with more than two servers were investigated by Armony and Ward [
12], Efrosinin [
13], Rosberg and Makowski [
14], Viniotis and Ephremides [
15]. Rykov in [
16] gave evidence for certain monotonicity properties of an optimal policy in case of the mean number of customers minimization. The techniques to prove such results are based on monotonicity properties of the dynamic programming relative value function. The case of infinitely many servers was proposed by Shenker and Weinrib [
17], where an asymptotic analysis of large heterogeneous queueing systems is performed.
As it was shown in [
18,
19], also taking into account the incompleteness of the theoretical proof noticed by Vericourt and Zhou in [
20], the optimal allocation policy, which minimizes the mean number of customers in heterogeneous queueing system without preemption, belongs to a set of structural policies. According to this policy for the servers’ enumeration (
1) the first server is used whenever it is free and there is a waiting customer in the queue, while the empty server with a number
must be occupied only if the first
k faster servers are busy and the number of customers in the queue reaches some threshold level
. Numerical analysis shows that the threshold level
in general case can have a very weak dependence of slower servers’ states. Due to our observations, the optimal threshold may vary by at most 1 when the state of a slower server changes. Moreover, since this deviation has no influence on the mean number of customers in the system, it can be neglected. Hence the optimal allocation policy can be defined as a classic threshold one through a sequence of threshold levels
, that is the first
k servers must be occupied whenever there are
q customers in the queue and
.
While there is a certain amount of work being done on heterogeneous systems, there are still many open questions related to the accurate and quick calculation of the optimal control policy and the resulting performance characteristics. Searching for optimal values
by a direct minimizing the mean number of customers in the system can be performed only for small
K by solving the system of difference equations for the steady-state probabilities or by means of a matrix geometric approach introduced by Neuts [
21]. However, when
K is large, these methods become too complicated. For example, the involved in computation matrix sizes become infeasible large even for the moderate numbers of servers like
, see e.g., [
22]. To calculate the optimal threshold levels the MDP model and a policy iteration algorithm [
23,
24,
25], which constructs a sequence of improved policies that converges to optimal one, can also be used. While this approach is a powerful tool for solving many optimization tasks, it has significant limitations on dimension of the model, number of states, convergence in a heavy traffic case due to processing time and memory requirements. The contribution of the paper is three-fold. First, we provide a simple heuristic solution (HS) for a sub-optimal policy in order to avoid the time-consuming search for the optimal one in case of an arbitrary number of servers. Second, we investigate the possibility to use the equivalent queueing system with a preemption and a threshold-based policy to evaluate the lower and upper boundaries for the optimal mean number of customers in the system without preemption. Third, we check by means of a simulation, whether the proposed heuristic solution for the optimal thresholds is insensitive to changes in the form of inter-arrival and service time distributions.
This paper is organized as follows. In
Section 2 we discuss a queueing model, formulate the corresponding MDP and specify a policy-iteration algorithm used for evaluation the optimal threshold policy.
Section 3 introduces a heuristic solution for the optimal threshold levels based on a simple discrete fluid approximation, that turn out to be nearly optimal. In
Section 4 we propose approximations to calculate the lower and upper bounds for the mean number of customers in the system under the optimal allocation policy. In
Section 5 the simulation is used to provide sensitivity analysis of the heuristic solution to changes in inter-arrival and service time distributions. Finally, we make some conclusions and remarks.
2. Mathematical Model and MDP Formulation
Consider an infinite-capacity
queueing system with
K heterogeneous servers and one common queue, see
Figure 1. The customers arrive to the system according to a homogeneous Poisson process with a rate
. The
jth server has an exponentially distributed service time with a rate
. The server
j is called an available server if it is idle. The service of customers is has no preemption, i.e., a customer being served on a server cannot change it. In this case a threshold-based policy defined below which is used for the customer allocation has sense. The inter-arrival and service times are assumed to be mutually independent. Assume that the servers are enumerated in a way
The stability condition is obviously defined through the inequality
The controller or decision maker has a full information about system states. It allocates customers between servers according to a control policy
f either to one of available servers or to queue at a new arrival and service completion epoch if it occurs with a nonempty queue. The system dynamics is common for the systems with one common queue and heterogeneous servers. At each arrival epoch the customer joins the queue and the controller can allocate the customer staying at the head of the queue to an available server
j. At service completion epochs the controller may decide to allocate the customer from the head of nonempty queue to an available server or leave the customer in the queue. As it was mentioned above, the optimal control policy
f, which minimizes the mean number of customers in the system with servers ordered according to (
1), belongs to a set of threshold policies defined as a sequence of threshold levels
According to this policy the first k servers must be occupied whenever there are q customers in the queue and for , and for . For example, the policy f for the system with servers and thresholds means that the fastest server is used whenever upon arrival of a customer it is free and there are q customers in the queue with . The first two servers are used when . The first three servers must be occupied whenever there are customers in the queue, the first four customers are used when . All servers must be used when the queue length exceeds the level . When the queue length drops below a specific threshold level, then the corresponding busy server remains idle after a service completion. As thresholds can take on different values, there are a huge number of admissible threshold policies. Hence the main goal is to calculate the optimal values for threshold levels and the minimized mean number of customers in the system.
We formulate the above optimization problem as a Markov decision process associated with a multi-dimensional continuous-time Markov chain
with a set of admissible actions
with elements
a, where
means the allocation of the customer to the queue and
–to the
jth server. The term
in (
4) denotes the number of customers in the queue at time
t,
–the state of server
j at time
t, where
For any fixed allocation policy
f we wish to guarantee that the process
is an irreducible, positive recurrent Markov chain with a state space
and infinitesimal generator
which depend on the policy
f. The notations
and
will be used further in the paper to specify the components of the vector state
, where
denotes the queue length in state
x and
–the state of the
jth server in state
x. We use next the notations
to specify respectively a set of idle and busy servers in state
x,
the subset of admissible actions in state
x and
stands for a vector of dimension
with 1 in the
jth position (
) and 0 elsewhere.
For the ergodic Markov decision process a long-run average cost in the system per unit of time for the policy
f coincides with the corresponding assemble average, i.e.,
where
in our model is a number of customers in state
,
denotes the total average number of customers up to time
t given initial state is
x and
is a stationary state probability of the process under given policy
f. The policy
is said to be optimal when for
defined in (
5) we evaluate
One fruitful approach to finding optimal policy
is through solving the Bellman’s optimality equation, which in our case is of the form
where
B is a dynamic programming operator acting on a relative value function
which indicates a transient effect of an initial state
x to the total average cost, and, according to Howard [
23], the following asymptotic relation for the function
in case of a Markov-chain with one ergodic class holds,
The functions and further in the paper will be denoted by v and g without upper index f.
Proposition 1.
The Bellman’s optimality Equation (7) is defined as followswhere the notation specifies the indicator function, which takes the value 1 if the event A holds, and 0 otherwise. Proof. According to [
26], the behaviour of the function
in the interval
by letting
and taking into account the asymptotic relation (
8) can be represented as a system of linear equations, which in general case is of the form
Evaluating these equations for analyzed queueing system and taking into account the transition rates of the specified Markov decision model we get
The relation for contains the term specifying a number of customers in state , the second term represents the changing of the state accompanying with a new arrival which occurs with a rate . The third and the fourth terms represent transitions due to service completions at server j with a rate by en empty and non-empty queue respectively. □
To generate a data-set for the queueing system under study which includes optimal threshold levels and corresponding values of the system parameters the policy-iteration Algorithm 1 is used. For numerical results the truncated equivalent system with a buffer size
W is considered. The algorithm consists of two main steps: policy evaluation and policy improvement. In the first step, for a given control policy
f the system of linear equations for the relative value function
,
must be solved together with an equation
. In the second step, the obtained in the first step relative function is used to improve the current policy. The algorithm stops when a new policy coincides with a previous one. As an initial policy the FSF allocation policy is used.
Algorithm 1 Policy-iteration algorithm |
- 1:
procedure PIA() - 2:
▹ Initial policy - 3:
- 4:
▹ Policy evaluation - 5:
for do - 6:
- 7:
end for - 8:
▹ Policy improvement - 9:
if then return - 10:
else , go to step 4 - 11:
end if - 12:
end procedure
|
We convert by implementing the Algorithm 1 the
-dimensional state space
E of the Markov decision process ordered in a certain way to a one-dimensional equivalent state space
,
, for state
,
Therefore, in one-dimensional case the changing of the state
x due to adding or removing a customer from the queue and due to occupation or departure of a customer from the
jth server can be respectively represented in the form,
For further details about derivation of the dynamic programming equation needed to evaluate the optimal policy the interested readers are referred to [
13]. The infinite buffer queueing system is approximated by a finite buffer equivalent system in such a way that the loss probability does not exceed some specified small number
.
Remark 1.
For the bounded buffer size W the number of states is If the queue length , all servers must be busy and the system behaves like a queueing system with a service rate . The stationary state probabilities , , satisfy the difference equationwhich has a solution in a geometric form, , . For details and theoretical substantiation see e.g., [27]. The threshold level can be estimated using HS (11). The buffer size W is chosen in such a way that it satisfies the condition for the loss probabilitywhere . After simple algebra it implies The algorithm was implemented in C++ and tested for model problems up to 10 servers and a queue of size . It shows matching results to the proposed heuristic solution but is only viable for relative small number of servers. For system with 100 servers the maximum number of states would be in the order of which makes a reasonable usage of the policy-iteration algorithm impossible.
Example 1.
Consider the system with and . The service rates take the following values: . The buffer size is which for guaranties that , where is evaluated by (11). The table of evaluated control actions for selected system states x is of the form:System state x | Queue length |
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | ... |
(0,*,*,*,*) | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
(1,0,*,*,*) | 0 | 0 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 |
(1,1,0,*,*) | 0 | 0 | 0 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 |
(1,1,1,0,*) | 0 | 0 | 0 | 0 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 4 |
(1,1,1,1,0) | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 5 | 5 |
(1,1,1,1,1) | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Threshold levels , , can be evaluated by comparing the optimal actions for . In this example the optimal policy is defined here through a sequence of threshold levels and .
3. Heuristic Solution
As it was mentioned above, the policy iteration algorithm has restrictions on dimension of the model, number of states, convergence in a heavy traffic case. In this section we derive a heuristic solution (HS) to estimate threshold levels
,
, for the arbitrary
K using a simple discrete fluid approximation
,
, for the queue length at time
t, as illustrated in
Figure 2.
We now explain how this fluid model can be employed for our aim. Assume that
is an optimal threshold to allocate the customer to server
k in state
, where the first
servers are busy. Now we compare the queues of the system given initial state is
, where the
kth server is not used for a new customer, and
, where the
kth server is occupied by a waiting customer. It is assumed that the stability condition holds. In
Figure 2, the queue lengths are labeled by
and
. If the queue dynamics corresponded to the deterministic fluid, it would decrease at the rate
. When this rate is maintained until the queue is empty, it occurs respectively at points
and
. The total holding times of customers in a queue with lengths
and
are equal obviously to the areas
of triangles
and
. The mean service time of customers by first
busy servers until the queue is empty starting from state
is equal to
where
is a probability to be served by the
ith server, and starting from state
—is equal to
.
According to a specified deterministic fluid schema we formulate
Proposition 2.
The optimal thresholds , , are defined by Proof. Denote by
the overall average holding time of customers until the system is empty given initial state is
. The decision to perform the allocation to the
kth server in state
must lead to a reduction of the overall holding time under fluid schema, i.e.,
where
After substitution of (
13) into (
12) and some simple manipulations we get that the heuristic solution for the optimal threshold
is defined then as the integer larger then 1 and the smallest integer (
11) satisfying the inequality (
12). □
Example 2.
Consider a queueing system from previous example for . We generate a data-set S in form of a listand evaluate with HS for the corresponding thresholds , . Confusion matrices in Figure 3 visualize the performance of proposed heuristics respectively for the threshold levels . Each row of these matrices represents the instances in a predicted value while each column represents the instances in an actual value. We notice the heavily diagonally dominant matrices that indicates a very good classification. This fact is confirmed also by overall accuracies. Such metrics describe the closeness of the heuristic measurements to a real threshold value and are calculated through the ratio of correct predictions to total predictions. Calculations of the overall accuracies as well as the accuracies for results with an acceptable deviation of threshold values by from the real value are summarized in Table 1. Example 3.
Consider the queueing system with a different number of servers . Service rates take the values as given in Table 2. Table 3 lists values of optimal thresholds and corresponding heuristic solutions . As we see it, the maximum deviation of the optimal thresholds from the heuristic solution is 1 independently of the number of servers. The large number of numerical experiments carried out using the policy-iteration algorithm and simulations allows us to conclude that deviations of certain thresholds by 1 have practically no effect on the value of the minimised function. Thus, we believe that the proposed heuristic solution is effective for an arbitrary number of servers.
4. Simple Bounds for the Optimal Mean Number of Customers in the System
As established in previous section, the estimation of the optimal threshold policy is possible by means of a simple heuristic solution. Nevertheless, with this knowledge it is quite complicated to calculate the optimal mean number of customers in the system with a high number of servers. A possible solution for this problem consists in construction a proper approximation of the original system with a preemption by an equivalent system without preemption. In this case a multidimensional Markov-chain can be described by an one-dimensional process. In this section we develop approximations for the low and upper bounds for the optimal gain function , .
To calculate the lower bound
we use a heterogeneous queueing system with a preemption and threshold-based control policy denoted by
Further define by
the corresponding continuous-time Markov chain with a state space
describing the number of customers in the system. The state transition diagram of this system is illustrated in
Figure 4.
The optimal threshold levels
,
are calculated using the heuristic solution (
11). Obviously, since the customer being served in a slower server can change it as the faster one becomes empty, the mean number of customers in the system must be lower comparing to an original queue. The steady-state probabilities
obviously exist under the stability condition (
2).
Proposition 3.
The steady-state probabilities of the Markov chain are given by Proof. The proposition follows directly from the properties of the ergodic birth-and-death process
[
28]. □
From the probabilities it is possible to derive the performance measures of the system, e.g., the mean number of customers in the system and the mean number of customers in the queue .
Corollary 1.
The mean number of customers in the system satisfies the relation The upper bound
for the optimal mean number of customers in the system can be obtained from an equivalent system under the FSF policy, see a state transition diagram in
Figure 5, where
for
.
In this diagram the group of states with a certain number of busy servers are labeled by
according to the number of busy servers in a state. An analytical solution for the heterogeneous queueing system with the FSF policy, where all states of servers are taken into account, although possible, but it is limited by the number of servers in the system. The latter system can be approximated in turn by a heterogeneous system
with a preemption with appropriate evaluated service rates
,
. The dynamics of the system
is described by the continuous-time Markov-chain
with a state space
, where
specifies the number of customers in the system at time
t. The state transition diagram for this Markov-chain is presented in
Figure 6.
The approximations for are based on the observation that the incentive to occupy the slower servers is getting higher as arrival rate increases.
Proposition 4.
The service rates , , of the queueing model can be approximated by the following relations Proof. For small arrival rate, e.g.,
, most probably that only the first server which is the fastest one will be occupied and hence it will have the main contribution to the service rate
. When the values
are larger, e.g.,
, the first server will have a contribution to
with a probability
and the second server—with a complementary probability
. For larger values of
,
the first three servers will contribute to
with probabilities
,
and
. Similarly we may derive the contribution of the servers larger values of
up to the condition
. To evaluate the contribution to the service rate
in a state with two busy servers the same schema can be used. When
is small,
, the first two servers will form the service rate
. If
, the first three servers will have a contribution to
, the first and second servers contribute with a probability
, the second and fourth–with a probability
. When
, the four faster servers will serve the customers, the first and second server with probability
, the second and third server with probability
and the third and fourth with probability
. The procedure can be continued for larger values of
in a similar way as before. The proposed arguments can be summarized for all service rates
,
, and the arbitrary number of servers
K in form of the approximation (
16). □
It can be verified that for any
j the quotient
and
. Now we can use the approximation (
16) to derive the steady-state distribution.
Proposition 5.
The steady-state probabilities of the Markov-chain are given by Proof. The proposition follows from the properties of the ergodic birth-and-death process
[
28]. □
Corollary 2.
The mean number of customers in the system satisfies the relation Example 4.
Consider the queueing system with a total service intensity equal to . Here we analyse the systems with different number of servers and their heterogeneity.
A Gini’s index , , can be used to measure the inequality for individual data μ, see for details [29], and hence is quite appropriate as a metric for the heterogeneity of servers. This index can be obtained by computing the moments of the data set with sorted in increasing order, The Gini’s index ranges from a minimum value of zero, when all individuals are equal, e.g., for the homogeneous servers , to a theoretical maximum of one when every individual except one has a value zero. Two different values of heterogeneity are studied within this example, namely and . The corresponding values of service intensities for three types of systems with , and are presented in Table 4. In Figure 7, Figure 8 and Figure 9 we display the values with bounds and calculated respectively by the policy-iteration Algorithm 1 and by expressions (15) and (17) as functions of λ and number of servers . The Gini’s index in a figures labeled by (a) and —by (b). The curves in figures show, that the mean number of customers as well as the size of the gap between the lower and upper bounds increases with increasing values of K. As expected, the low and upper bounds must coincide with a mean value for the system with homogeneous servers, where . Indeed, in figures with less heterogeneity of servers the curves for and are getting closer, as the Gini’s index decreases. Moreover, we notice that the functions take similar values in a light traffic case when and tend to the same values as the traffic becomes heavier, i.e., if . 5. Sensitivity Analysis of the Heuristic Solution to Changes in Distribution
Another natural method to calculate the mean number of customers in the system and to check whether a certain policy leads to a reduction of this value is a simulation. This approach, while time-consuming, also makes it possible to examine the sensitivity of the optimal control policy
f and the corresponding mean performance characteristics to changes in distribution types other than exponential. An implementation of a simulation model is shown in the
Figure 10 bellow.
For this specific implementation it is possible to set the number of servers, the buffer capacity, threshold levels (limits), the arrival and service rates. The customers are indicated by a black circle, and are numbered accordingly to their arrival times. On the graphical interface there are also fields that show the actual amount of customers in the system, the average number and the total number of customers in the system including the already processed customers, the number of lost customers due to the truncated buffer capacity. The stability condition is taken into account and the buffer size is big enough so there should be hardly any lost customers. Hence the results with a truncated queue are comparable to systems with infinite queue lengths. Unfortunately, simulations are also unfit to solve systems with a large number of servers and states, as one would need to simulate a large number of different configurations with thousands of customers to get acceptable results. This fact further confirms the relevance of the results obtained in the previous sections.
The inter-arrival
A and service times
,
, of customers follow exponential, gamma, Pareto, log-normal and hyper-exponential distributions. To get comparable results the parameters of the distributions are chosen to have the same means
,
,
, and variances
,
,
, as the system driven by exponential distribution. For this purpose we use formulas describing the parameters in terms of the mean and variance given by Toth et al. [
30]. The main goal of the simulation experiments consists in understanding weather the heuristic solution (
11) for
and
is insensitive to changes in forms of distributions.
Example 5.
As a reference, we first simulate the system with an arrival rate , . Table 5 lists the mean number of customers in the system the optima, heuristic, FSF policies as well for other threshold policies with lower and higher values of thresholds. We now simulate the systems like , as well as with heterogeneous servers and threshold-based allocation policy where either the inter-arrival times, the service time or both follow one of the distributions mentioned above. For all the following simulation results we hereby want to find the mean number of customers in the system for the policies specified in the preceding table for the markovian queueing system . Table 6 provide a sensitivity and comparative analysis of the system performance obtained by employing different inter-arrival and service time distributions. Of course, finding the optimal control policy through a simulation modelling is not an easy task. But in our example, we do not want to find the real values of the optimum thresholds, but rather to understand whether the optimum control and heuristic solution changes drastically when the distribution of the corresponding random values characterising the behaviour of a queueing system changes. Note that for the optimal and heuristic policy takes always the values between those corresponding to the policies with lower and higher thresholds. The results of this example, as well as numerous other results carried out for systems with other parameters, show that while the absolute values of the mean number of customers vary as distributions change, the values of the optimal and heuristic thresholds are concentrated sufficiently close to the respective thresholds for markovian systems. Thus, we strongly believe, it is possible to use a heuristic solution with the replacement of exponential intensities by intensities of arbitrary distributions as a quasi-optimal solution in the problem of minimising the mean number of customers in the system with non-exponential inter-arrival and service time distributions.