Asymptotic Optimality of Switched Control Policies in a Simple Parallel Server System Under an Extended Heavy Traffic Condition

Published Online:https://doi.org/10.1287/stsy.2022.0022

Abstract

This paper studies a two-class, two-server parallel server system under the recently introduced extended heavy traffic condition, which states that the underlying “static allocation” linear program (LP) is critical, but does not require that it has a unique solution. The main result is the construction of policies that asymptotically achieve previously proved a lower bound, on an expected discounted linear combination of diffusion-scaled queue lengths and are therefore asymptotically optimal (AO). Each extreme point solution to the LP determines a control mode—that is, a set of activities (class-server pairs) that are operational. When there are multiple solutions, these modes can be selected dynamically. It is shown that the number of modes required for AO is either one or two. In the latter case, there is a switching point in the (normalized) workload domain, characterized in terms of a free boundary problem. Our policies are defined by identifying pairs of elementary policies and switching between them at this switching point. They provide the first example in the heavy traffic literature where weak limits under an AO policy are given by a diffusion process where both the drift and diffusion coefficients are discontinuous.

Funding: R. Atar is supported by the Israel Science Foundation [Grant 1035/20].

1. Introduction

1.1. Background

Parallel server systems (PSSs) are queueing control problems in which a number of servers offer service to customers of different classes, and choices as to which customer class each server is dedicated to are made dynamically. Since its introduction in Harrison and López (1999), its study in heavy traffic has attracted much attention, due to its simple structure, its practical significance, and the theoretical challenges it poses. The problem formulation in Harrison and López (1999) includes a key assumption, referred to as the heavy traffic condition (HTC), which states that an underlying “static allocation” linear program (LP) satisfies a critical load condition and that it has a unique solution. Whereas critical load is universally considered a defining condition of any notion of heavy traffic, uniqueness of solutions has been assumed mainly because it simplifies the mathematical treatment. The extended HTC (EHTC), which merely states that the LP is at criticality, but does not require uniqueness, has recently been introduced in Atar et al. (2024) in order to address a considerably broader notion of heavy traffic. The main result of Atar et al. (2024) is a lower bound on the asymptotically achievable cost in a general PSS under the EHTC. This paper focuses on the two-class, two-server PSS referred to in this introduction as the 2 × 2 PSS, which is the simplest case in which the EHTC is strictly broader than the HTC. The goal is to complement the results of Atar et al. (2024), in this case by constructing policies that asymptotically achieve the lower bound, which, hence, are asymptotically optimal (AO) in heavy traffic.

The structure of the 2 × 2 PSS is as follows. Each of the two servers is capable of serving each of the two classes. The classes (respectively, servers) are usually indexed using the symbol i (respectively, k) and activities, namely, class-server pairs, by j=(i,k). Arriving customers await service in class-based queues and, upon receiving a single service, leave the system. The control decisions consist of routing (determining which server serves each customer) and sequencing (determining the order in which they are served). The rates of arrivals of customers of the two classes are denoted by λin, i = 1, 2, and the rates of service at each of the four activities are denoted by μikn, where n denotes the usual heavy traffic parameter. These rates are assumed to be asymptotic to λin+λ^in1/2 and μikn+μ^ikn1/2, for some given λi, λ^i, μik, μ^ik. The cost consists of an expected infinite horizon discounted linear combination of the two queue lengths and is rescaled at the diffusion scale.

Whereas the cost and, consequently, the notion of AO are set up at the diffusion scale, the underlying LP alluded to above addresses the behavior of the PSS at the fluid, or law-of-large-numbers (LLN), scale. Posed in terms of the first-order parameters, λi, μik, it is concerned with the mean fraction of time devoted by each server to each class. When the LP has a unique solution, at least one activity is nonbasic, in the sense that the fraction allocated to it is zero. The so-called graph of basic activities (GBA), formed by the activities with positive allocation fraction, is static. In this case, the critical load condition dictates that any policy not adhering to this solution, in the sense of effort allocation, causes the total queue length to blow up and, in particular, cannot be AO. Under policies that adhere to this solution, the LLN assures that the aforementioned fractions of effort converge to those given by the LP solution (a necessary, but certainly not sufficient, condition for AO). When there are multiple LP solutions, a result from Atar et al. (2024) states that for the 2 × 2 PSS, the space of solutions, denoted by SLP, forms a line segment ch(ξ*,1,ξ*,2) in the space of 2 × 2 matrices (where “ch” denotes the convex hull). In each of the two extremal solutions, ξ*,1,ξ*,2 there is again at least one nonbasic activity. We refer to these two extreme points as control modes, or simply modes. For similar reasons, any policy that does not lead to an unbounded cost should keep the system critically loaded at all times, and, thus, asymptotically, the fractions of effort will vary dynamically within SLP. In the control literature, a control process that takes values only at the vertices of the action space is called a bang-bang control. The analogue of this notion in our setting is a policy for which the limiting fractions of effort take values only in {ξ*,1,ξ*,2}, switching between the two extremal solutions. Some of the policies introduced in this paper are designed to act that way.

Contrary to the setting where the HTC holds, it is impossible to construct an AO policy based only on the first-order data under the EHTC. A second-order approximation of the PSS, which is often referred to as a Brownian control problem (BCP), is required. The BCP represents a diffusion limit of the PSS, in which Brownian motion (BM) replaces stochastic fluctuations associated with cumulative arrival and service processes. Closely related to the BCP is another diffusion control problem, called a workload control problem (WCP). Obtained by a certain projection of the BCP, it is a control problem in which the process is one-dimensional, representing the total workload asymptotics. The structure of the WCP obtained is quite simple to describe. The state process is a reflected diffusion on R+, with controlled drift and diffusion coefficients, b=b(ξ),σ=σ(ξ), where the control process, ξ=ξt, takes values in SLP, and ξ(b(ξ),σ(ξ)2) is an affine map. The cost is given as an expected discounted version of the state process itself. By a standard argument based on the Hamilton-Jacobi-Bellman (HJB) equation, there exists an optimal bang-bang control for the WCP. There can therefore be two possibilities for the WCP solution: the single-mode case, where one of the modes is always used, and the dual-mode case, where both modes are used by the optimal control in different parts of the state space. Note that in this case, the GBA can be changed dynamically. The HJB equation also reveals the structure of the feedback function from state to control. This particular HJB equation was solved in Sheng (1978). It was shown that in the dual-mode case, there is a switching point z*(0,), such that one of the modes is used when the state is below z* and the other otherwise. The HJB equation can be viewed, in this case, as an equation involving a free boundary, in which the solution is a pair, where one component is the value function and the other is z*. The results of Sheng (1978) also characterize z* as the unique solution to an explicit equation, as well as a solution to the HJB equation.

Our policies are obtained by “translating” the WCP solution. In the case of a single mode, the prescribed policy corresponds either to a threshold policy of the form that first appeared in Bell and Williams (2001) (see below) or a simple priority policy, depending on the mode used and the cost. In the dual-mode case, pairs of elementary policies are identified, which are combined together to form switched control policies, so that one is active when the normalized workload process is below the switching point and the other above it. In each case, the policy is designed to meet the target allocation efforts determined by the corresponding mode, and the set of operational activities is restricted by the corresponding GBA.

The paper closest to ours is the aforementioned Bell and Williams (2001), which studies a two-server, two-class PSS with three activities. This PSS is known as an “N” network because upon relabeling, the activities are given by (1, 1), (1, 2), and (2, 2), forming the symbol N. (See Figure 1(a).) In this network, the number of solutions to the LP cannot exceed one, and, thus, the requirement of a unique solution does not pose a restriction. In an earlier work, Harrison (1998), it had been observed that when the larger “cμ” value is in class 1, the BCP solution suggests that the queue length of class 1 customers and the idleness process at server 1 should both converge to zero at the diffusion scale and that a simple priority policy does not achieve this. In Bell and Williams (2001), this was addressed by putting a threshold on class 1 queue length that, when exceeded, server 2 prioritizes class 1, and otherwise it prioritizes class 2. The size of the threshold must converge to zero at the diffusion scale so as to achieve the first goal. To achieve AO of a threshold policy with logarithmic (in n) size threshold, as used in Bell and Williams (2001), the interarrival and service times are assumed there to possess exponential moments. (More on the history of the problem and the works that contributed to its development can be read in Atar et al. 2024.)

Figure 1. The Full and Nonbasic Activities Are Shown in Thick and Dashed Lines, Respectively
Notes. Graph (a) corresponds to a mode in canonical form. Graphs (a) and (b) correspond to a pair of modes where the nonbasic activity switches a class, whereas in graphs (a) and (c), it switches a server. The pair (b) and (c), in which the nonbasic activity switches both a class and a server, is neither class- nor server-switched.

As already mentioned, one of the policies we implement is a threshold policy similar to the one used by Bell and Williams (2001). However, our assumptions are positioned differently with respect to the threshold-moment tradeoff, assuming a larger (still o(n)), polynomial size threshold, but requiring only a polynomial moment assumption. We assume 2+ε moment assumptions for all of our policies except the single-mode threshold policy and the dual-mode policies that employ the threshold policy when the workload is above z*. For these, a finite m0-th moment is assumed, where the number 4<m0<5 is indicated explicitly. Another difference between our results and those of Bell and Williams (2001) is that our policies do not use preemption. Although the policy introduced in Bell and Williams (2001) uses preemption, it is plausible that an analogous nonpreemptive policy is also AO under similar conditions; see Corollary 2.15 and Remark 2.16. In this paper, our choice not to use preemption leads to nontrivial issues in the dual-mode case. Instead of a simple switching between elementary policies when the workload crosses z*, it is sometimes the case that one must wait for a particular server to become available before switching. This is described in Section 5.1.3.

It is also worth mentioning that we have argued in Atar et al. (2024) that the AO of the threshold policy from Bell and Williams (2001) extends beyond the HTC to the case of multiple solutions and a single mode (under some assumptions, which include the existence of exponential moments).

Besides the objective to break the uniqueness barrier, an additional source of motivation for this work stems from the relation between nonuniqueness and service rate decomposability. As stated in Lemma 2.1, for the 2 × 2 PSS, the LP exhibits multiple solutions if and only if the service rates decompose as μik=αiβk. Service rates decompose this way when the mean size of a job is characteristic to the class (and then αi is the reciprocal mean) and each server has its own processing speed (here given by βk). As the HTC does not hold under decomposability, this important class of service rates has been left out by earlier work.

1.2. Results

The description of the policies given above is only a sketch. There are nontrivial issues that arise regarding the need to “patch” two policy types, requiring us to slightly modify the policies, where the details differ from one pairing to another.

The main result states that, under the prescribed policies, the rescaled workload process converges in law to the diffusion process that solves the WCP, and these policies are AO. As far as convergence is concerned, in addition to the “standard” issues involved in proving state-space collapse, we need to deal with issues related to switching control modes at z*. Moreover, to obtain AO from weak convergence, uniform integrability needs to be established, and it is here where the 2+ε and m0 moment assumptions are used.

An approach to proving convergence to a diffusion with discontinuous coefficients, addressing especially the technicalities involved with the discontinuity of the diffusion coefficient, was developed in Krylov and Liptser (2002), going beyond the general framework for convergence of semimartingales, such as that from Liptser and Shiriaev (1977). Whereas the tools from Krylov and Liptser (2002) are not directly applicable in our setting, an argument that, as in Krylov and Liptser (2002), shows that the time spent near the discontinuity set is negligible is also at the basis of our proof. The paper Krylov and Liptser (2002) also gives an example of a queueing model whose scaling limit yields a diffusion process with discontinuities in both drift and diffusion coefficients. Our dual-mode case provides what seems to be the first example where this occurs under an AO policy of a queueing control problem (for AO in heavy traffic leading to discontinuity in the drift only, see Atar and Lev-Ari 2018).

1.3. Organization of the Paper

In Section 2.1, we describe our model and the control problem associated with it in more detail. The LP and the extended heavy traffic condition are introduced in Section 2.2, and preliminary results about the LP from Atar et al. (2024) are stated. In Section 2.3, the WCP and the associated HJB equation are introduced, and in Proposition 2.6, it is stated that there exists a unique classical solution to the HJB equation. This proposition also provides a condition that determines whether an optimal solution to the WCP must employ a single mode or two modes (not to be confused with the number of modes in the space of LP solutions, which is always two under multiplicity) and asserts that in the dual-mode case, there exists a single switching point z* in workload space. We also present in this section the lower bound from Atar et al. (2024) stated in Theorem 2.4. The main result is stated in Section 2.4. The definitions of the proposed policies appear first, and then, in Theorem 2.13, the weak convergence and AO results are stated. Numerical results are presented in Section 2.5.

In Section 3, we state and prove some results related to the static allocation LP, providing, in particular, explicit expressions for the extreme points of the set of optimal solutions. Development of the WCP is carried out in Section 4. Preliminary results proved in Atar et al. (2024) in a general case are included in this section. This section also contains proofs of results related to the HJB equation, some of which rely on Sheng (1978).

The proof of our main result, Theorem 2.13, is the subject of Section 5. In Section 5.1, we present the general scheme for proving Theorem 2.13; the weak convergence result is stated in Theorem 5.1. We then present four propositions that are used for the proof. Each proposition corresponds to a specific section and step of the proof. Proposition 5.3, in Section 5.2.2, proves uniform integrability; state space collapse is proved in Proposition 5.4 in Section 5.2.3; a key nonidling property is proved in Proposition 5.5 in Section 5.2.4; and a “fast switching” property, showing the aforementioned property that the process spends asymptotically negligible time near the discontinuity, is proved in Proposition 5.6 in Section 5.2.6. Appendix A contains proofs of several lemmas stated earlier. Appendix B presents expressions from Sheng (1981) for the solution to the HJB equation. Finally, Appendix C contains a result providing symmetry conditions under which a single mode control is optimal.

1.4. Notation

N,R, and R+ are the sets of natural, real, and, respectively, nonnegative real numbers. For a,bR,ab and ab denote the maximum and minimum of a and b, respectively, and a+=a0. For a set A, 𝟙A denotes its indicator function. For f:R+R, and t,δ>0, ft=sups[0,t]|f(s)| and

wt(f,δ)=sup{|f(s1)f(s2)|:0s1s2(s1+δ)t}.

For 0st, the notation f[s,t] stands for f(t)f(s). For real-valued functions and processes, the notation X(t) is used interchangeably with Xt. Given a Polish space E, CE[0,) and DE[0,) denote the spaces of E-valued, continuous and, respectively, càdlàg functions on [0,), equipped with the topology of convergence uniformly on compacts and, respectively, the J1 topology. Denote by CR+[0,) and DR+[0,) the subset of CR[0,) and, respectively, DR[0,), of nonnegative, nondecreasing functions and by CR0,+[0,) the subset of CR+[0,) of functions that are null at zero. Write XnX for convergence in law. A sequence of processes with sample paths in DE[0,) is said to be C-tight if it is tight and the limit of every weakly convergent subsequence has sample paths in CE[0,) almost surely (a.s.). The letter c denotes a deterministic constant whose value may change from one appearance to another.

2. Model and Main Results

The setup and results presented in this section have quite a few ingredients, as already mentioned in the introduction: the LP and modes, the diffusion scaling, the WCP and HJB equation, the switching point z*, and threshold and switching policies. Before going into the details, we provide a roadmap. The two-class, two-server system, introduced in Section 2.1, is indexed by n and is observed at the diffusion scale. The assignment of jobs from the different classes to different servers is regarded as a control policy. A cost functional is considered, given by the expected discounted weighted sum of queue lengths, also rescaled at the diffusion scale; see Section 2.6. The weights of the queue lengths are given by a vector (h1, h2).

In order to formulate a policy-independent condition for heavy traffic, an LP (2.7) is introduced, involving first-order arrival and service rates, where the variable to be determined is a 2 × 2 allocation matrix describing the (first-order) fraction of effort each server dedicates to each class. It is assumed to be at criticality, in the sense that servers are fully occupied, but queue lengths stay balanced. In that regard, we adopt the heavy traffic notion of Harrison and López (1999) and many other papers that followed, with one important distinction: We do not assume that there is a unique allocation matrix that maintains criticality—that is, there may be multiple LP solutions. When there are multiple solutions, they are all given as convex combinations of two allocation matrices (Lemma 2.1), which we call modes. Because earlier work has addressed the unique solution case, we only treat the case of multiple solutions (Assumption 2.2). A result from Atar et al. (2024) states that under this assumption, the first-order rates μik are necessarily decomposable as αiβk. Each of the modes induces a so-called graph of basic activities, as in Figure 1. The parameters αi and the structure of the graphs influence the type of control policy to be proposed.

The WCP (2.16) and (2.17) is a control problem for a diffusion process in dimension 1, in which both the drift and the diffusion coefficient are controlled by a control process that takes values in the space of allocation matrices. The values of these coefficients, evaluated at the two modes, are denoted bm and, respectively, σm, m = 1, 2. The WCP formally describes the control problem associated with the PSS at the diffusion limit, and its control process represents the dynamic selection of the mode at which the PSS operates. The significance of the WCP has two aspects. First, as was shown in Atar et al. (2024), its solution gives a lower bound on the PSS cost asymptotics under any sequence of control policies (Theorem 2.4). Accordingly, any policy that achieves this bound is AO. Second, it suggests how AO policies should be structured. In particular: (a) State space collapse should hold, which, in our setting, involves two properties that should hold up to a level negligible at diffusion scale: (i) Both servers should be busy whenever there is any work in the system, and (ii) all queue length should be kept in the class i that minimizes hiαi. Roughly speaking, (ii) implies that the class that maximizes hiαi should be prioritized. This type of sequencing policy is known as a cμ rule. (But, as shown by Harrison 1998 and Bell and Williams 2001, something more than a simple priority policy may be needed here in order to accomplish (i).) (b) When, for either (m,m)=(1,2) or (m,m)=(2,1), one has bmbm and σmσm, only mode m should be used. Otherwise both modes should be used, by dynamically selecting them at different parts of the state space. The partition of the state space is defined via a switching point z*: When the diffusion-scaled workload is below z*, the mode m with bmbm should be used; otherwise, m. Determining this switching point is done by solving an HJB equation, (2.18) and (2.19).

The construction of an AO policy must take into account several considerations: whether to operate in one or two modes and, in the latter case, their ordering in workload space; which class has high priority; and the structure of the graph of basic activities for each of the modes. Different types of policies apply in different cases (Definitions 2.9, 2.10, 2.11, and 2.12). The main result states that these policies are AO and that the normalized workload converges weakly to the diffusion process given by the WCP state process under an optimal control (Theorem 2.13).

2.1. Queueing Model, Scaling, and Queueing Control Problem

The model under consideration is as in Atar et al. (2024), specialized to the case of two job classes, two servers, and four activities. We will refer to it as the 2 × 2 PSS when there is need to distinguish it from the general PSS treated in Atar et al. (2024). The symbol i{1,2} is used as a generic index to a class and k{1,2} to a server. For a general PSS, an activity is a class-server pair (i, k), where server k is capable of serving class i. In this paper, it is assumed that each server is capable of serving each class; hence, there are four activities. They are labeled by (i, k) or sometimes by j=(i,k).

The model consists of a sequence of systems, indexed by nN, that are all defined on one probability space (Ω,F,P). For the nth system, one considers the following processes. The processes denoted An=(Ain) and Sn=(Sikn) represent arrival and potential service counting processes. That is, Ain(t) is the number of arrivals of class i jobs until time t, i = 1, 2, and Sikn(t) is the number of service completions of class i jobs by server k, by the time server k has devoted t units of time to class i, i = 1, 2, k = 1, 2. Next, Xn=(Xin),In=(Ikn),Dn=(Dikn), and Tn=(Tikn) denote queue length, cumulative idleness, departure, and cumulative busyness processes. In other words, Xin(t) is the number of class i customers in the system at time t, Ikn(t) is the cumulative time server k has been idle by time t, Dikn(t) is the number of class i departures from server k, and Tikn(t) is the cumulative time devoted by server k to class i. The process Tikn takes the form Tik(t)=0tΞikn(s)ds, where Ξikn(t) is the fraction of effort devoted by server k to class-i jobs at t. In particular, iΞikn(t)1 for every k. Thus, Ξn is referred to as the allocation process.

The aforementioned arrival and potential service processes are constructed as follows. Arrival rates λin and service rates μikn are given, satisfying, for some constants λi(0,),μik(0,),λ^iR, μ^ikR,

λ^inn1/2(λinnλi)λ^i,μ^iknn1/2(μiknnμik)μ^ik,
as n. For each i, a renewal process Aˇi is given, with interarrival distribution that has mean one and squared coefficient of variation 0<CAi2<. Similarly, for each (i, k), a renewal process Sˇik is given with mean one interarrival and squared coefficient of variation 0<CSik2<. It is assumed that An and Sn are given by
Ain(t)=Aˇi(λint),Sikn(t)=Sˇik(μiknt).

It is assumed, moreover, that the six processes Aˇi,Sˇik are mutually independent and have strictly positive interarrival distributions and right-continuous sample paths. The independent and identically distributed interarrivals of Aˇi and Sˇik are denoted by aˇi(l) and uˇik(l),lN, respectively, and those of the accelerated processes Ain and Sikn are given by

ain(l)=1λinaˇi(l),uikn(l)=1μiknuˇik(l).(2.1)

The system is assumed to start empty; that is, Xn(0)=0 for all n. Simple relations between the processes are

Dikn(t)=Sikn(Tikn(t)),(2.2)
Xin(t)=Ain(t)kDikn(t),(2.3)
Ikn(t)=tiTikn(t),(2.4)
the sample paths of Xin are nonnegative, and those of Ikn are in CR0,+[0,).(2.5)

The tuple (Aˇ,Sˇ) is referred to as the stochastic primitives. In our formulation, we will consider Tn as the control process (equivalently, the allocation process Ξn may be regarded the control). In view of Equations (2.2), (2.3), and (2.4), given the stochastic primitives, the control uniquely determines the processes Dn, Xn, In. Let an additional process be defined on the probability space denoted by ϒ=(ϒ(l),lN), taking values in a Polish space Srand and assumed to be independent of the stochastic primitives, for each n (there is no need to let ϒ vary with n, as the primitives are all defined on the same probability space). It is included in the model in order to allow the construction of randomized controls; for more details about its potential use, see Atar et al. (2024, remark 2.1.ii).

The process Tn is said to be an admissible control for the queueing control problem (QCP) for the n-th system if for each (i, k), Tikn has sample paths in CR0,+[0,) that are 1-Lipschitz, and the associated processes Dn, Xn, and In given by (2.2), (2.3), and (2.4) satisfy (2.5); furthermore, Tn is adapted to the filtration {Ftn} defined by Ftn=σ{(An(s),Dn(s),s[0,t]),ϒ}. Denote by An the collection of all admissible controls for the QCP for the n-th system. As argued in Atar et al. (2024, remark 2.1.i), this definition allows for the control to depend on the history of all processes involved in the model (in addition to the auxiliary randomness ϒ).

The queue-length process normalized at the diffusion scale is defined by X^in(t)=n1/2Xin(t). The cost of interest for the n-th system is given by

J^n(Tn)=E0eγth(X^n(t))dt,TnAn,(2.6)
where γ>0 and h(x)=h1x1+h2x2, with constants h1,h2>0, and X^n is the rescaled queue length process associated with the admissible control Tn. The value for the n-th system is defined by
V^n=inf{J^n(Tn):TnAn}.

This completes the description of the queueing models and QCP. The complete set of problem data consists of the stochastic primitives mentioned above and the collection of parameters

(λi),(μik),(λ^i),(μ^ik),(CAi),(CSik),γ,(hi).

We sometimes refer to (λi),(μik) as the first-order data and to (λ^i),(μ^ik),(CAi),(CSik) as the second-order data.

2.2. The Linear Program and Extended Heavy Traffic Condition

Given the first-order data λi>0, μik>0,i,k=1,2, consider the following linear program for the unknowns (ξik)R+2×2 and ρR.

Linear Program.

Minimize ρ subject to

{k=12ξikμik=λii=1,2,i=12ξikρk=1,2,ξik0i,k=1,2.(2.7)

Denote the optimal objective value of (2.7) by ρ*.

Extended Heavy Traffic Condition.

ρ*=1

The extended heavy traffic condition is broader than the heavy traffic condition that has been extensively used in the literature, which requires, in addition to ρ*=1, that there be a unique corresponding ξ.

Under the EHTC, any solution is of the form (ξ,1). Let SLP denote the subset of R2×2, for which the set of all solutions is given by SLP×{1}. We say that the EHTC with multiplicity (EHTCM) holds if the EHTC holds and the LP has multiple solutions (that is, there exist two distinct pairs (ξ(1),1) and (ξ(2),1) satisfying (2.7)). Following Atar et al. (2024), we say that the service rates μik are decomposable if μik=αiβk for all i, k, for some constants αi and βk.

A matrix ξR+2×2 is called column-stochastic if iξik=1 for both k = 1, 2. A column-stochastic matrix is called a mode if (at least) one of its columns is either (0,1)T or (1,0)T. A mode is said to be degenerate if it has more than one zero entry; otherwise, it is said to be nondegenerate. A pair of nondegenerate modes is said to be a class-switched (server-switched) pair of modes if the zero entries in the two modes are in distinct rows but the same column (respectively, distinct columns but the same row). For example, the graphs in Figure 1, (a) and (b) correspond to a class-switched pair of modes, whereas those in Figure 1, (a) and (c) correspond to a server-switched pair.

The following condition will be referred to as the nondegeneracy condition, namely,

λiμik for all (i,k){1,2}2.(2.8)

The following is proved in Section 3.

Lemma 2.1.

Let the EHTC hold.

  1. For any solution (ξ,1), ξ is column-stochastic.

  2. The LP (2.7) has multiple solutions if and only if (μik) are decomposable.

  3. If the LP has multiple solutions, then there exists a pair of modes (ξ*,1,ξ*,2) such that

    SLP=ch({ξ*,1,ξ*,2}).(2.9)

  4. If the LP has multiple solutions and the nondegeneracy condition (2.8) holds, then both ξ*,1 and ξ*,2 of (2.9) are nondegenerate. Moreover, they form either a class-switched or a server-switched pair.

The main result will be proved under the following.

Assumption 2.2.

  1. The EHTCM holds.

  2. The nondegeneracy condition (2.8) holds.

Note that the case where the EHTC holds, but EHTCM does not hold, is already covered in the work Bell and Williams (2001), although, as mentioned in the introduction, under different assumptions on preemption and moment conditions. (See Corollary 2.15 and Remark 2.16 for implications of our results to the case where uniqueness holds and more on the relation to Bell and Williams 2001 in that case.)

In view of Lemma 2.1(2), under Assumption 2.2, the rates (μik) are decomposable. Thus, μik=αiβk, and clearly, there is a degree of freedom in choosing (αi) and (βk). In this paper, we will always assume that they are chosen so that kβk=1, and it is easy to see that, given (μik), this normalization uniquely determines these parameters.

It is also guaranteed by the lemma that, under Assumption 2.2, the extreme points of SLP are two nondegenerate modes ξ*,1,ξ*,2 forming a class- or a server-switched pair. Once a labeling of these modes has been fixed, we will sometimes slightly abuse the terminology by referring to them as modes 1 and 2, rather than modes ξ*,1 and ξ*,2.

In earlier work on PSS, under the assumption that the LP has a unique solution (ξ*,1), activities are categorized as basic or nonbasic according to the positivity of the fraction allocated to them by ξ*; that is, an activity (i, k) is basic if ξik*>0 and nonbasic if ξik*=0. We extend this terminology to the case of multiple solutions as follows. For m{1,2}, an activity (i, k) is said to be basic in mode m if the allocation associated to it by this mode does not vanish, namely, ξik*,m>0. If ξik*,m=0 (respectively, ξik*,m=1) it is said to be nonbasic (respectively, full) in mode m.

Figure 1 demonstrates the second part of Lemma 2.1(4)—namely, that a pair of modes can be class-switched, as in Figure 1, (a) and (b), or server-switched, as in Figure 1, (a) and (c), but the LP does not give rise to a pair such as Figure 1, (b) and (c). The terms class-switched and server-switched will sometimes be abbreviated as “CS” and “SS.”

A mode is said to be in canonical form if its first column is (1,0)T. It is clear by the definition of a mode that it is always possible to relabel the classes and the servers so that a given mode is in canonical form and that if the mode is nondegenerate, there is only one such relabeling. The graph of a mode in canonical form is shown in Figure 1(a). Because of its resemblance to the symbol N, this form is sometimes called an N-system.

If the EHTCM holds, but (2.8) does not—that is, there exist i, k such that λi=μik—the situation is different: at least one of the modes will be degenerate—that is, have two nonbasic activities (see Lemma 3.1). In the terminology of linear programming, this corresponds to a case where one of the basic solutions of the LP (2.7) is degenerate (cf. Goldfarb and Todd 1989, definition 3.1). The degenerate case is not covered in this paper. The key difficulty in the degenerate case is that, in at least one of the modes, the servers do not communicate in the graph of basic activities, so the pooling required to reach the cost lower bound is not possible. (See Atar et al. 2024, section 2.4 for a more detailed discussion of this issue.)

Under Assumption 2.2, both modes have a single nonbasic activity. Then, given a mode, the graph of basic activities has exactly three edges, and one can speak of the single-activity class (the one associated with only one nonbasic activity), the dual-activity class, and, similarly, the single- and dual-activity server. These terms allow us to refer to the roles of classes and servers in the graph without considering a particular labeling. It is also useful to accompany these terms with matching notation. For a mode ξ, let the single- (respectively, dual-) activity class be denoted by i1(ξ) (respectively, i2(ξ)), and, similarly, let the single- (respectively, dual-) activity server be denoted by k1(ξ) (respectively, k2(ξ)).

The following example, which corresponds to examples (A) and (B) in Atar et al. (2024), should help to make the above ideas more concrete.

Example 2.3.

Let (μik) be given by

μ11=3,μ12=4,μ21=6,μ22=8.

Then, μik are decomposable as αiβk, where α1=7,α2=14,β1=3/7, and β2=4/7. For (λi), consider two cases—namely,

(A)λ1=5,λ2=4,(B)λ1=3.5,λ2=7.

The linear program takes the form: Minimize ρ subject to

{3ξ11+4ξ12=λ1,6ξ21+8ξ22=λ2,ξ11+ξ21ρ,ξ12+ξ22ρ,minξik0.(2.10)

The solutions to the LP were calculated in Atar et al. (2024), and it was found that, in both cases, ρ*=1, and the two modes are given by

ξ*,1=(1,12,0,12)T,ξ*,2=(13,1,23,0)T,
in case (A) and
ξ*,1=(1,18,0,78)T,ξ*,2=(0,78,1,18)T,
in case (B). In particular, the system is critically loaded, and there are multiple ways to allocate the effort so as to meet the demand. That is, the EHTCM holds. Figures 2 and 3 depict the graphs of basic activities corresponding to these modes. The examples differ in the way the two modes are paired. In case (A) (respectively (resp.), (B)), the nonbasic activity switches a server (a class). This distinction is of crucial significance to the way AO policies are designed in this paper.

Figure 2. The Two Modes in Case (A)
Figure 3. The Two Modes in Case (B)

2.3. Workload Control Problem

The WCP was derived and studied in Atar et al. (2024) under the EHTC. We describe this problem in the special case needed here—namely, under the setting of a 2 × 2 PSS and assuming that the EHTCM holds. In particular, as mentioned above, the parameters (αi),(βk) are uniquely determined by the problem data. Define the workload process and its scaled version as

Wn(t)=iXin(t)αi,W^n(t)=iX^in(t)αi.(2.11)

(It follows from Atar et al. 2024, lemma 2.4(2) that (2.11) agrees with the definition of Wn and W^n given in Atar et al. 2024). Let the process that appears in the definition of the Cost (2.6) be denoted by

H^tn=h(X^n(t))=h1X^1n(t)+h2X^2n(t).(2.12)

Throughout, denote by p,q{1,2} the two distinct indices for which

hpαphqαq,(2.13)
where in the special case h1α1=h2α2, set p = 1 and q = 2. The policies constructed in this paper aim at keeping X^pn close to zero. Hence, we call p the high-priority class (HPC) and q the low-priority class (LPC). Next, let σA,i=λi1/2CAi,σS,ik=μik1/2CSik, and
b(ξ)=iλ^ikμ^ikξikαi,σ(ξ)2=iσA,i2+kσS,ik2ξikαi2,ξ=(ξik)SLP.(2.14)

Let also

bm=b(ξ*,m),σm=σ(ξ*,m),m=1,2.(2.15)

It was shown in Atar et al. (2024) that the asymptotics of the pair (W^n,Ξn) are governed by a state-control pair of processes (Z,Ξ), where Z is a one-dimensional controlled diffusion given by

Zt=z+0tb(Ξs)ds+0tσ(Ξs)dBs+Lt,(2.16)

Ξ is a control process, B is a standard BM (SBM), L is a reflection term at zero, and z0. A precise definition is as follows.

A tuple S=(Ω,F,(Ft),P,B,Ξ,Z,L) is said to be an admissible control system for the WCP with initial condition z if (Ω,F,(Ft),P) is a filtered probability space; B, Ξ, Z, and L are processes defined on it; B is a SBM and an (Ft)-martingale; Ξ is (Ft)-progressively measurable taking values in R2×2 and satisfying P(for a.e. t,ΞtSLP)=1; Z is continuous nonnegative and (Ft)-adapted; L has sample paths in CR0,+[0,) and is (Ft)-adapted; and Equation (2.16) and the identity [0,)ZtdLt=0 are satisfied P-a.s.

Denoting by AWCP(z) the collection of all control systems for the WCP with initial condition z, the cost and value are defined as

JWCP(z,S)=ES0eγtZtdt,VWCP(z)=inf{JWCP(z,S):SAWCP(z)}.(2.17)

The significance of the WCP lies in the fact that it provides a lower bound on the large n asymptotics of the n-th system value. More precisely, the main result of Atar et al. (2024), when specialized to the 2 × 2 PSS, states the following.

Theorem 2.4

(Atar et al. 2024). Let Assumption 2.2 (multiplicity and nondegeneracy) hold. Then,

lim infn V^nV0hqαqVWCP(0).

To prove this result, one only needs to verify that the assumptions from Atar et al. (2024) hold under Assumption 2.2. This is done in Section 3.

Remark 2.5.

The general result from Atar et al. (2024) does not assume multiplicity and, moreover, uses different notation based on the formulation of a dual to the LP. In the 2 × 2 setting with multiplicity, the lower bound from Atar et al. (2024) reduces to the above expression given in terms of the parameters (αi) in place of the dual.

In view of Theorem 2.4, a sequence TnAn of admissible controls for the QCP, also referred to as a sequence of policies, is said to be asymptotically optimal if

lim supn J^n(Tn)V0.

2.3.1. A Heuristic Discussion of the WCP and Sheng’s Tortoise–Hare Problem.

The WCP is important not only because it provides a lower bound on performance, but also because one can learn from it how to construct a policy for the queueing model that performs near optimality. This problem has been solved completely. Before presenting its solution, we discuss its nature informally. Assume first that the pairs (b1,σ1) and (b2,σ2) are such that b1<b2, while σ1=σ2. Then, it is intuitively clear and can be shown by a simple coupling that JWCP is minimized by always using mode 1, because it has a smaller drift. Next, consider the case where b1 = b2, but σ1<σ2. Mode 2 has greater variance, and, thus, one expects that the constraining mechanism, causing the diffusion to bounce back from the boundary, will be more active under mode 2 than under mode 1. Hence, again, using mode 1 at all times is optimal. More generally, mode 1 is optimal when b1b2 and σ1σ2.

A more interesting case is when b1<b2 but σ1>σ2, referred to in Sheng (1978) as the tortoise–hare problem. It seems reasonable to use the mode with smaller drift when the diffusion process is far from the origin and switch to the mode with smaller variance when it is close to the origin, where the aforementioned boundary effect is more prominent.

These heuristic arguments were validated rigorously in Sheng (1978). In particular, in the case b1<b2,σ1>σ2, it was shown that there exists a point z*(0,) such that it is optimal to select mode 2 (resp., 1) when Zt is in [0,z*) (resp., [z*,)). The identification of z* and the proof of the result were based on an HJB equation. The precise details are as follows.

2.3.2. The HJB Equation.

The value function can be characterized in terms of an HJB equation (see Fleming and Soner 2006 for an introduction to the subject). To present this equation, for (v1,v2,ξ)R2×SLP, let

H¯(v1,v2,ξ)=b(ξ)v1+σ(ξ)22v2,H(v1,v2)=infξSLPH¯(v1,v2,ξ)=minξ{ξ*,1,ξ*,2}H¯(v1,v2,ξ),
where the identity on the right-hand side (RHS) follows from the fact that both b and σ2 are affine as a function of ξ, and SLP is the convex hull of {ξ*,1,ξ*,2}. A classical solution to the HJB equation is a C2(R+:R) function u satisfying
H(u(z),u(z))+zγu(z)=0,z(0,),(2.18)
and the boundary conditions at 0 and ,
u(0)=0,u(z)<c(1+z),zR+, for some constant c.(2.19)

Given a C2 function u, denote Hmu(z)=H¯(u(z),u(z),ξ*,m), m = 1, 2, and Hu(z)=minmHmu(z).

The following two conditions play an important role in what follows. They correspond to the two cases discussed above and will be referred to as the single-mode case and, respectively, the dual-mode case (not to be confused with uniqueness and multiplicity of the LP solution):

there exist distinct m,m{1,2} such that bmbm and σmσm,(2.20)
there exist distinct m,m{1,2} such that bm<bm and σm>σm.(2.21)

The C2 smoothness of the value function is tied to the question of existence of a classical solution to the HJB equation. Owing to the uniform ellipticity (σ(ξ)2>0 at both ξ=ξ*,1 and ξ*,2), one can show that a classical solution uniquely exists (Atar et al. 2024, proposition 2.5), a type of result that, in the general context of optimal switching of a diffusion process, has been called the principle of smooth fit. The results of Sheng (1978) alluded to above shed more light on the specific problem at hand, providing structural properties (parts 2 and 3 of the result below) that are harder to obtain via the general approach.

Proposition 2.6.

  1. There exists a unique classical solution u to (2.18) and (2.19). Moreover, u=VWCP.

  2. If (2.20) holds, then, with m as in (2.20),

    Hu(z)=Hmu(z)zR+.(2.22)

  3. Alternatively, if (2.21) holds, then there exists z*(0,) such that, with the pair (m,m) of (2.21),

    Hu(z)={Hmu(z)z<z*,Hmu(z)z>z*.(2.23)

The proof of this result appears in Section 4. Some details on the construction from Sheng (1978) (as corrected in Sheng (1981), by which parts 2 and 3 above were proved, appear in Appendix B.

Further terminology is as follows. In the single-mode case, the mode ξ*,m for which m satisfies (2.20) will be referred to as the active mode and denoted ξA because the above result indicates that it is optimal to always select Ξt=ξ*,m. In the dual-mode case, the modes ξ*,m and ξ*,m for which m and m satisfy (2.21) will be referred to as ξL, the lower- and, respectively, ξH the higher-workload mode, and z* as the switching point. These terms refer to the fact that the result suggests that it is optimal to select Ξt=ξL (respectively, Ξt=ξH) when Zt<z* (respectively, Zt>z*).

Example 2.7.

We go back to Example 2.3, focusing on case (A), adding now information on the second-order data. Assume that the squared coefficients of variation CAi2 and CSik2 are all one except CS112=4. Set both λ^i to zero. As for μ^ik, consider two cases. In case (A1), all μ^ik are set to zero. In case (A2), they are all zero except μ^11=1. For each of the modes, computing the drift and squared diffusion coefficients via (2.14) and (2.15) gives, in case (A1),

b1=0,σ12=37,b2=0,σ22=1549.(2.24)

In case (A2),

b1=17,σ12=37,b2=121,σ22=1549.(2.25)

Note that case (A1) is a single-mode case, whereas case (A2) is a dual-mode case. Roughly speaking, we may infer that, in the former case, in order to perform near optimality, it is necessary to keep the proportions of the work allocated to the different activities close to the fractions given by ξA. That is, the policies should be designed to achieve ΞnξA. As for case (A2), recall that Z approximates W^n. Hence, in this case, it is necessary for the work allocation to vary over time in such a way that the aforementioned proportions are close to ξL when W^n(t)<z* and to ξH when W^n(t)>z*. This is, again, only a rough statement; a precise formulation of this behavior appears next.

2.3.3. The Controlled Diffusion.

Controlling (2.16) according to the above description results in two different diffusion processes. In the single-mode case, the optimally controlled process Z is given by

Zt(1)=z+bAt+σABt+Lt(1),(2.26)
with bA=b(ξA) and σA=σ(ξA), which is nothing but a reflecting BM with drift bA and diffusivity σA. In the dual-mode case, consider the stochastic differential equation (SDE)
Zt(2)=z+0tb*(Zs(2))ds+0tσ*(Zs(2))dBs+Lt(2),(2.27)
where, throughout, we denote
b*=bφ*,σ*=σφ*,φ*(z)=ξL𝟙[0,z*](z)+ξH𝟙(z*,)(z),zR+.(2.28)

For this equation, weak existence and uniqueness of solutions hold, as we shall argue in Lemma 4.1. As a result, there exists a control system for the WCP that behaves exactly as described above, with Ξt=ξL (respectively, ΞH) when Zt(2)z* (>z*), and, moreover, this description uniquely determines the law of the process Z(2).

As for the asymptotics of the QCP, the preceding discussion and the fact that the system starts empty suggest that in order to achieve the lower bound, the convergence

(X^pn,W^n)(0,Z(1)),with z=0,(2.29)
should hold in the single-mode case, and
(X^pn,W^n)(0,Z(2)),with z=0,(2.30)
in the dual-mode case, where Z(1) is given by (2.26), (Z(2),Ξ,L,B) is a weak solution to (2.27), and z = 0.

2.4. Asymptotic Optimality Results

This section is devoted to the description of several policies that are shown to be AO under different conditions. We have already assumed that the interarrival times of the primitive processes possess finite second moments. Our main results require a stronger assumption.

Assumption 2.8.

There exists m>2 such that

maxi,k E[aˇi(1)m]E[uˇik(1)m]<.

Whereas the assumption m>2 is required for all our results, some of them will require yet a stronger moment assumption—namely, m>m0—where, throughout, we denote

m0=12(5+17).

Different policies are proposed in different cases. The distinction between the various cases is based on whether the Single-Mode Condition (2.20) or the Dual-Mode Condition (2.21) holds and, further, for each of the relevant modes (ξA in the former case and both ξL and ξH in the latter), whether the HPC (class p) is the single- or dual-activity class. Our policies under the single-mode and dual-mode conditions are presented in Definitions 2.11 and 2.12, respectively. These use the P, T1 and T2 rules defined in Definition 2.10. The P rule is the simple priority rule that always give priority to the HPC, whereas the T2 rule involves a threshold, similar to the policy in Bell and Williams (2001), which prioritizes the HPC, except when the number of HPC customers is below a certain threshold. The T1 rule also involves a threshold (again, prioritizing the HPC, except when the number of HPC customers is below a certain threshold) and is only used in some cases of dual-mode policies for reasons described in the paragraph following Definition 2.11. Policies under the single-mode condition involve one rule, whereas policies under the dual-mode condition involve one or two rules.

All policies we describe are nonpreemptive; that is, the processing of a job is not interrupted once started. A job is said to be in the queue if it is waiting to be served, whereas it is in the system if it is either in the queue or being processed. (In what is a bit of an abuse of terminology, we use the term queue length to refer to the number in the system.) A server is said to be available at a time t if either it has just completed a job or has already been idle at that time.

Some of the policies to be described are defined in terms of a sequence of thresholds, Θn, put on the queue length at one of the two buffers. Under Assumption 2.8, m>2. Fix a¯ satisfying

12ζ¯(m)<a¯<12whereζ¯(m)={m24m,m(2,m0],m24mm25m+22m(3m2)=m25m+22m(3m2),m(m0,).(2.31)

Set the sequence of threshold levels Θn and their normalized version Θ^n to

Θn=na¯,Θ^n=n1/2Θn.(2.32)

Definition 2.9

(Server Dedicated to/Prioritizes a Class).

  1. A server is said to be dedicated to class i at a given time if it acts as follows: if available at that time, it admits a job from class i, provided there is one in the queue, or there is a new class-i arrival, but does not admit a job from the other class.

  2. A server is said to prioritize class i at a given time if it acts as follows: if available at that time, it admits a job from class i, provided there is one in the queue; otherwise, it admits a job from the other class, provided there is one in the queue. If the server is idle at that time and there is a new arrival of any class, it admits this arrival unless the other server is dedicated to that class and is free at that time (in which case the other server admits it).

Definition 2.10

(P, T1, and T2 rules). Let a mode ξ be given. At any moment in time the single-activity server is dedicated to the dual-activity class.

  1. The servers are said to obey the priority rule, abbreviated the P rule, at a given time if the dual-activity server prioritizes the single-activity class at that time.

  2. The servers are said to obey the single-activity class threshold rule, abbreviated the T1 rule, at a given time if in the n-th system, the dual-activity server prioritizes the single-activity class when the queue length of the single-activity class equals or exceeds Θn at that time, and otherwise prioritizes the dual-activity class.

  3. The servers are said to obey the dual-activity class threshold rule, abbreviated the T2 rule, at a given time if in the n-th system, the dual-activity server prioritizes the dual-activity class when the queue length of the dual-activity class equals or exceeds Θn at that time, and otherwise prioritizes the single-activity class.

Recall the notations ξA, ξL, ξH, and p from Section 2.3. In the case of a single mode, the following two policies are proposed. (In Definitions 2.11 and 2.12, the text in square brackets is not a part of the definition, but serves to indicate when each policy is to be applied.)

Definition 2.11

(Single-Mode Policies P and T2). Let the Single-Mode Condition (2.20) hold.

  1. The P policy [to be applied when i1(ξA)=p] is as follows: the servers obey the P rule corresponding to ξA at all times.

  2. The T2 policy [to be applied when i2(ξA)=p] is as follows: the servers obey the T2 rule corresponding to ξA at all times.

In the dual-mode case, servers switch between two rules, depending, roughly speaking, on whether the rescaled workload is below or above the switching point z*. This makes the structure of the policies more complicated. In particular, there is potential loss of capacity in every switching, especially because our policies are nonpreemptive. Moreover, the number of switchings grows without bound, as the rescaled workload converges to a diffusion. Therefore, one has to be careful about how to assure that the rule obeyed is updated soon enough after the workload level has crossed the switching point so as not to compromise optimality. The considerations differ in the different cases and give rise to the use of the T1 rule, as well as the sampling rules in Definition 2.12. Although it is possible that AO is not too sensitive to these fine details, proving that might be quite hard.

The precise definition requires the use of a state variable called current mode, which determines which rule is applicable. This variable is not updated continuously in time about whether Wn>n1/2z*, but only at certain sampling times, as detailed below. The four policies used in the dual-mode case are as follows.

Definition 2.12

(Dual-Mode Policies PP, T2T2, T1T2, and T2T1). Let the Dual-Mode Condition (2.21) hold.

  1. The PP policy [applied when i1(ξL)=i1(ξH)=p] is as follows.

    1. The workload is sampled at each service completion of the single-activity server. If the workload is below n1/2z*, the current mode is set to ξ=ξL; otherwise, it is set to ξ=ξH.

    2. The servers always obey the P rule with respect to (w.r.t.) the current mode ξ.

  2. The T2T2 policy [applied when i2(ξL)=i2(ξH)=p] is as follows.

    1. The workload is sampled at each service completion of the single-activity server. If the workload is below n1/2z*, the current mode is set to ξ=ξL; otherwise, it is set to ξ=ξH.

    2. The servers always obey the T2 rule w.r.t. the current mode ξ.

  3. The T1T2 policy [applied when i1(ξL)=i2(ξH)=p] is as follows.

    1. The workload is sampled at each arrival and service completion. If the workload is below n1/2z*, the current mode is set to ξ=ξL; otherwise, it is set to ξ=ξH.

    2. Whenever ξ=ξL, the servers obey the T1 rule w.r.t. ξ; whenever ξ=ξH, they obey the T2 rule w.r.t. ξ.

  4. The T2T1 policy [applied when i2(ξL)=i1(ξH)=p] is as T1T2, except that the roles of T1 and T2 are interchanged.

Our main result states conditions under which each of the six policies just introduced are AO.

Theorem 2.13.

Let Assumptions 2.2 and 2.8 hold. In parts 1(b), 2(b), and 2(c), assume moreover that m>m0.

  1. Assume that the Single-Mode Condition (2.20) holds.

    1. If i1(ξA)=p , then under the P policy, (2.29) holds, and this policy is AO.

    2. If i2(ξA)=p , then under the T2 policy, (2.29) holds, and this policy is AO.

  2. Assume that the Dual-Mode Condition (2.21) holds.

    1. If i1(ξL)=i1(ξH)=p, then under the PP policy, (2.30) holds, and this policy is AO.

    2. If i2(ξL)=i2(ξH)=p, then under the T2T2 policy, (2.30) holds, and this policy is AO.

    3. If i1(ξL)=i2(ξH)=p, then under the T1T2 policy, (2.30) holds, and this policy is AO.

    4. If i2(ξL)=i1(ξH)=p, then under the T2T1 policy, (2.30) holds, and this policy is AO.

The proof of this result is in Section 5. Table 1 summarizes how to determine which of the above six case applies, based on the problem data. We discuss some of the fine details of our construction in the dual-mode case in Section 5.1.3.

Table

Table 1. Identifying an AO Policy Assuming LP Solution Multiplicity

Table 1. Identifying an AO Policy Assuming LP Solution Multiplicity

Input: the problem data, (λi),(μik),(λ^i),(μ^ik),(σi),(σik),γ,(hi). Output: an AO policy.
1. Find the two modes (i.e., extreme solutions) of the LP (2.7), ξ*,m, m = 1, 2. In particular, because the LP is assumed to have multiple solutions, μik are given as αiβk, and the formulas in Lemma 3.1 express ξ*,m, m = 1, 2 in terms of αi and βk.
2. Compute the drift-diffusion pairs (bm,σm), m = 1, 2. For this, use Equation (2.15).
3. Decide single- or dual-mode case, and find the active-/lower-/higher-workload modes, as follows. For (m,m)=(1,2) or (2, 1), if bmbm and σmσm, then this is the single-mode case, with m the active mode: ξA=ξ*,m.
Otherwise, this is the dual-mode case, and if σm<σm, then m (resp., m) is the lower (higher)-workload mode: ξL=ξ*,m,ξH=ξ*,m.
4. In the dual-mode case, compute the switching point z*. This is done by numerically solving the HJB Equation (2.18)–(2.19), or, alternatively, Equation (B.3).
5. Determine high-priority class: p=arg maxihiαi.
6. For ξ=ξA (single mode) or ξ=ξL and ξH (dual mode), denote by i1(ξ) (resp., i2(ξ)) the class that is assigned one (resp., two) server(s) under mode ξ.
7. Given the number of modes, the modes ξA or ξL and ξH, the indices p and i1(ξ),i2(ξ) for the relevant modes ξ, determine which of the six cases of Theorem 2.13 applies.
Remark 2.14.

In Section 5.1, Theorem 5.1 provides more detailed information than (2.29) and (2.30) on the weak limit of the processes involved.

Although the main goal of this paper is to address the case where the LP has multiple solutions, the following result about the case where it has a unique solution is a consequence of our treatment.

Corollary 2.15.

Let thestandardHTC hold; that is, the EHTC with a unique LP solution (ξ*,1). Let also Assumption 2.8 hold. In part (b), assume moreover that m>m0.

  1. If i1(ξ*)=p, then under the P policy, (2.29) holds, and this policy is AO.

  2. If i2(ξ*)=p, then under the T2 policy, (2.29) holds, and this policy is AO.

Remark 2.16.

This result is closely related to the main result of Bell and Williams (2001), which proved AO of a threshold policy under the standard HTC. In a remark in Bell and Williams (2001, p. 622), it was conjectured that the threshold policy without preemption has the same behavior in the heavy traffic limit as the one with preemption. Corollary 2.15 confirms that AO can indeed be achieved by a nonpreemptive threshold policy, although, strictly speaking, it does not prove the precise conjecture from Bell and Williams (2001), as our threshold sizes differ from those of Bell and Williams (2001).

Example 2.17.

We continue cases (A1) and (A2) from Example 2.7, specifying now which part of the main result applies in each case. Recall from Example 2.3 that α1=7 and α2=14. Recall from Example 2.7 that Figure 2 depicts the two modes and the corresponding graphs and that the drift-diffusion pairs are given by (2.24) and (2.25). Case (A1) is a single mode because b1 = b2, and the active mode is ξA=ξ*,2 because σ2<σ1. As can be seen in Figure 2 (right), this mode has i1(ξA)=2. Now, assume that the costs are (h1,h2)=(1,1). Then, the class that maximizes hiαi is p = 2. Thus, i1(ξA)=p, and Theorem 2.13(1(a)) holds. If, instead, (h1,h2)=(3,1), then p = 1, and, therefore, Theorem 2.13(1(b)) holds.

In case (A2), we have b1<b2 but σ2<σ1; hence, this is a dual-mode case with ξL=ξ*,2 and ξH=ξ*,1. By Figure 2, i1(ξL)=2 and i1(ξH)=2. Again, if (h1,h2)=(1,1), then p = 2, and we see that Theorem 2.13(2(a)) applies, but if (h1,h2)=(3,1), p = 1, and Theorem 2.13(2(b)) applies.

2.5. Some Numerical Results

The dual-mode policies that we introduce are admittedly complicated, and the proof of their asymptotic optimality is quite involved. A natural question thus arises here: Is all of this complexity worthwhile? What is the gain from it?

From a purely theoretical/mathematical context, the answer is simple: If the dual-mode policy has a cost that is strictly below that of both single-mode controls, then a nonswitching policy cannot be asymptotically optimal. From a practical viewpoint, this answer falls short. Implementing the dual-mode policy is clearly more complicated than implementing a single-mode policy. A key question thus arises: Is the gain from using a dual-mode policy sufficient to overcome the effort involved in implementing it? The answer to this question is context-dependent and clearly depends on the cost of the effort required to implement the dual-mode control, which we do not include as part of our model. Thus, we do not quite answer this question.

We do, however, partially answer the question of how much larger is the cost of single-mode policies over the optimal switching policy. We do this in two numerical examples. All of the numerical results that we present here are obtained by finding the unique root of Equation (B.3) and then using (B.1) and (B.2). Note that to use (B.3), (B.1), and (B.2), the identity of the two modes needs to be flipped around because in case (A2), we have b1<b2, and the analysis in Appendix B requires b1b2. The mode identities in our presentation remains as in (A2).

The first numerical results are for the case (A2) introduced in Example 2.7, with γ=0.01. In particular, in Figure 4, we plot three curves: V1(z),V2(z), and VWCP(z). Here, Vi is the cost function for using mode i,1=1,2. (The orange/top curve corresponds to V1, and the green/middle curve corresponds to V2.) It is clear from Figure 4 that there is a gap between VWCP(z) and both V1(z) and V2(z). We define the “gain” from using the optimal switching policy as

GV1(0)V2(0)VWCP(0).

Figure 4. Value Functions in Case (A2)

Thus, G1. For case (A2), G = 1.07. If the cost related to implementing the more complicated switching policy is great enough, it may indeed be decided that G = 1.07 is not sufficient to overcome this cost.

This raises a more general question: Can we place an a priori upper bound on G? It is beyond the scope of this paper to answer this question in any precise mathematical manner, but we provide a set of numerical results suggesting that the answer may be no: Given any M<, it is possible to find a set of parameters {(bi,σi2),i=1,2)} such that G > M. We examine a set of parameters loosely related to case (A2). In particular, we fix b2=1/21 and σ22=15/49, which are the parameters in case (A2), throughout. We also use γ=0.01. We then take six different values for b1 and set σ12 so that

σ12|b1|=σ22|b2|.

In particular, we take the b1 values to be {3/21,6/21,12/21,24/21,48/21,96/21}. Table 2 contains the results of this numerical experiment. Note that G = 1.26 when b1=3/21 and grows to G = 5.01 when b1=96/21.

Table

Table 2. Gain from Using Switching Policy

Table 2. Gain from Using Switching Policy

b1σ12z*GVWCP
3/2145/491.911.26174
6/2190/491.491.56141
12/21180/491.132.01109
24/21360/490.842.6782
48/21720/490.613.6361
96/211,440/490.445.0144

In a very real sense, the situation presented in Figure 4 is a “lucky” one for a system controller who does not want to go through the trouble of implementing the switching policy because the loss is only 7%. The results of Table 2 stand in contrast to that. To see this in graphical form, in Figure 5, we present the same plot as in Figure 4, but corresponding to the parameters in the third row of Table 2. (In this case, V1 and V2 have switched places: The green/top curve corresponds to V2, and the orange/middle curve corresponds to V1.)

Figure 5. Value Functions for Row 3 of Table 2

3. The LP Under the EHTC

In this section, we prove Lemma 2.1. In addition, in a sequence of three lemmas, we provide an explicit solution to the LP and a criterion for determining whether the two modes are class-switched or server-switched. Finally, Theorem 2.4 is proved. The section is structured as follows. In Section 3.1, we first prove Lemma 2.1(1–3), based mostly on results from Atar et al. (2024). Then, we state Lemmas 3.1 and 3.2, which provide the LP solution, and Lemma 3.3, which is concerned with how the modes are paired. Lemma 2.1(4) is then proved based on Lemma 3.3. In Section 3.2, we prove Lemmas 3.13.3 and Theorem 2.4.

3.1. LP-Related Lemmas

Proof of Parts 1–3 of Lemma 2.1.

  1. Let ξSLP. It is impossible that iξik<1 for both k = 1 and 2, as this contradicts the EHTC ρ*=1. Assume, then, that, say, iξi1<1. Then, ξ11<1. Define

    ξ˜=ξ+(εcε00),
    where c=μ121μ11. Then, for ε>0 small, ξ˜ satisfies (2.7) with ρ<1, which again contradicts the EHTC. This proves Part 1.

  2. This follows from Atar et al. (2024, lemma 2.4(4)). Note that uniqueness of the dual problem, which is a standing assumption in Atar et al. (2024), is not used in the proof of this statement.

  3. This statement follows from Atar et al. (2024, lemma 2.3(1)) and Atar et al. (2024, lemma 2.4(4)), where, again, the uniqueness of the dual is not used. □

The following lemma computes the two modes.

Lemma 3.1.

Let the EHTCM hold. Then,

iλiαi=kβk=1,(3.1)
where the last equality merely expresses the normalization convention mentioned earlier in Section 2.2. Moreover, any ξSLP is determined by its entry ξ11 via
ξ=(ξ11λ1α1β2β1β2ξ111ξ111λ1α1β2+β1β2ξ11).(3.2)

The two modes ξ*,1 and ξ*,2 can be expressed by (3.2) with ξ11 given by

ξ11*,1=max(0,λ1α1β1β2β1),ξ11*,2=min(λ1α1β1,1).(3.3)

Recall that under the nondegeneracy condition, for any mode, there is a unique relabeling of classes and servers, which transforms it to a canonical form. The following result shows that both modes, once put in canonical form, are given by the same formula.

Lemma 3.2.

Let Assumption 2.2 (EHTCM and nondegeneracy) hold. Fix m{1,2}. Relabel classes and servers so that ξ*,m is in canonical form. Then, λ1>α1β1 and

ξ*,m=(1λ1α1β2β1β20λ2α2β2).(3.4)

In particular, if ξ,ξSLP and there are i, k such that ξik=ξik=0, then ξ=ξ.

Lemma 2.1(4), which is yet to be proved, states that under the nondegeneracy condition, the two modes must be either class- or server-switched. The following lemma contains this result and, in addition, provides a criterion for distinguishing between these cases. We will say that the class-switching condition holds if

maxiλiαi<maxkβk,(3.5)
and the server-switching condition holds if
maxiλiαi>maxkβk.(3.6)

Lemma 3.3.

Let Assumption 2.2 hold. Then, both modes are nondegenerate. Moreover, under the Class-Switching Condition (3.5), the modes are class-switched (as, for example, in Figure 1, (a) and (b)), and under the Server-Switching Condition (3.6), they are server-switched (as, for example, in Figure 1, (a) and (c)).

Proof of Part 4 of Lemma 2.1.

The statement is contained in Lemma 3.3. □

Remark 3.4.

Note that cases 2(c) and 2(d) of Theorem 2.13 correspond to class-switched modes (for example, under case 2(c), one has i1(ξL)=i2(ξH)=p; hence, the nonbasic activity must have switched from class p to class q when moving from ξL to ξH). By Lemma 3.3, this occurs under (3.5). Also note that in both cases, the proposed policies apply a different rule for the lower and upper workload modes. On the other hand, cases 2(a) and 2(b) of Theorem 2.13 correspond to server-switching and hold under (3.6), and our policies are such that the same rule is used for the lower and upper workload modes.

3.2. Proof of Lemmas 3.1–3.3 and Theorem 2.4

Proof of Lemma 3.1.

In view of Lemma 2.1(1), every solution ξ is column-stochastic, and, recalling μik=αiβk, must satisfy

ξ11β1+ξ12β2=λ1α1,ξ21β1+ξ22β2=λ2α2,ξ11+ξ21=1,ξ12+ξ22=1,ξi,k0,i,k{1,2}.(3.7)

Identity (3.1) follows.

Next, because the Expression (3.2) is also column-stochastic, proving that any solution ξ is determined by ξ11 as in (3.2) amounts to proving that ξ12 is given as in (3.2). This follows from the first line in (3.7).

It remains to prove (3.3). By the expression just obtained for ξ12, it follows that as long as

ξ11λ1α1β1β2β1,
we obtain ξ121. Clearly, in addition, ξ110 must hold. Similarly, as long as
ξ11λ1α1β1,
we obtain ξ120, and, in addition, ξ111 must hold. As a result, it is necessary that
ξ11[max(0,λ1α1β1β2β1),min(λ1α1β1,1)].(3.8)

Moreover, setting ξ11 to each of the two endpoints of the interval indicated in (3.8) and letting ξ be the corresponding expression from (3.2) gives rise to a solution satisfying all of (3.7), as can be checked directly. Because by (3.2) a solution ξ is an affine function of its entry ξ11, these two endpoints correspond to the two extreme points of SLP; that is, to the two modes ξ*,1,ξ*,2. This proves the lemma. □

Proof of Lemma 3.2.

Note that Relations (3.7) are invariant to relabeling of classes and servers. Hence, so is Relation (3.2), which was derived solely from (3.7). Let m be given and assume a relabeling has been performed to put ξ*,m in canonical form. Then, ξ*,m satisfies (3.2) with its first column given by (1,0)T. Consequently ξ11*,m=1. Substituting ξ11*,m=1 into (3.2) proves (3.4). Because under the nondegeneracy assumption, there can be only one zero entry, in (3.4), we have ξ12*,m>0. Hence, λ1>α1β1. The final assertion follows from (3.4) using, again, the fact that there can be at most one zero entry □

The four possible graphs and their relabelings are described in Figure 6. Namely, if (i,k) is the nonbasic activity in ξ*,m, then defining

ξ˜11*,m=ξik*,m=1,ξ˜22*,m=ξik*,m,ξ˜21*,m=ξik*,m=0, and ξ˜12*,m=ξik*,m,

Figure 6. Top: Four Possible Graphs of Basic Activities; Bottom: Corresponding Relabelings for Canonical Form

ξ˜*,m is obtained from ξ*,m upon relabeling in the form of an “N.”

Proof of Lemma 3.3.

The nondegeneracy of both modes follows from Lemma 3.2.

Next, let the Class-Switching Condition (3.5) hold. Because of (3.1),

maxkβk>maxiλiαiminiλiαi>minkβk.(3.9)

Recall from the proof of Lemma 3.1 that the two endpoints of the interval defined in (3.8) correspond to the two modes. Consider the right endpoint. If the minimum in expression in (3.8) is one, then, by (3.2), the nonbasic activity in that mode is (2, 1), and, moreover, λ1α1>β1. By (3.1), this gives λ2α2<β2. In view of (3.9), this gives

β2>maxiλiαi.

Hence, the maximum in (3.8) is zero. By (3.2), this shows that the nonbasic activity in the other mode is (1, 1). If, on the other hand, the minimum in (3.8) is λ1α1β1, then λ1α1<β1, and the nonbasic activity in the corresponding mode is (1, 2). Similarly, by (3.9),

miniλiαi>β2.

This means the maximum in (3.8) is not zero. The nonbasic activity in the other mode is then (2, 2). In both cases, the two modes form a class-switched pair as claimed.

Consider now the Server-Switching Condition (3.6). Because of (3.1),

maxiλiαi>maxkβkminkβk>miniλiαi.(3.10)

If the minimum in (3.8) is one, then λ1α1>β1 and the nonbasic activity in one mode is (2, 1). By (3.10), λ1α1>β2. Hence, the maximum in (3.8) is not zero, and the nonbasic activity in the other mode is (2, 2). Finally, if the minimum in (3.8) is not one, then λ1α1<β1, and the nonbasic activity in one mode is (1, 2). By (3.10), λ1α1<β2. Hence, the maximum in (3.8) is zero and the nonbasic activity in the other mode is (1, 1). In both cases, the two of modes forms a server-switched pair. □

Proof of Theorem 2.4.

This lower bound is precisely the one stated in Atar et al. (2024, theorem 2.6), when specialized to the 2 × 2 PSS. To prove that it is valid, we must verify that the standing assumption of Atar et al. (2024), namely, Atar et al. (2024, assumption 2.2), holds.

First, Atar et al. (2024, assumption 2.2.1), which states that the EHTC holds, is valid because of our Assumption 2.2.1. Next, Atar et al. (2024, assumption 2.2.2), when translated to the notation of this paper, states that every ξSLP is column-stochastic. This holds by our Lemma 2.1.1. It remains to show that Atar et al. (2024, assumption 2.2.3), which states that the dual of (2.7) has a unique solution, is satisfied.

To this end, we shall adopt in the remainder of this proof some notation and terminology from Atar et al. (2024). By Lemma 3.2, the nonbasic activity is different in both modes ξ*,1,ξ*,2, for else one would have ξ*,1=ξ*,2, contradicting the EHTCM. As a result, with the terminology introduced in Atar et al. (2024, section 2), all the activities are potentially basic. Using strict complementary slackness ((36) in Schrijver 1986, chapter 7) in the same way as in Atar et al. (2024, lemma 2.3.4), any (y, z) solution of the dual satisfies

yi=μjzk,i,k{1,2},j=(i,k).

It follows that y1y2=μ11μ21z12=μ12μ22z22. By positivity of both zk, this gives z1 = cz2 for some constant c > 0. Moreover, one of the constraints of the dual problem Atar et al. (2024, equation (2.8)) is z1+z2=1. Therefore, (zk) are uniquely determined. As a consequence, so are (yi), which shows that the dual problem has at most one solution. The existence of a dual solution follows from the EHTC, as shown in Atar et al. (2024, lemma 2.4.2). This completes the verification of Atar et al. (2024, assumption 2.2). □

4. The WCP and HJB Equation

In this section, Proposition 2.6 is proved. Lemma 4.1, which is used to prove it, contains two additional results: An identification of optimal control systems for the WCP, and weak uniqueness of solutions to the SDE (2.27), both needed for the weak convergence proofs in Section 5.

Proof of Part 1 of Proposition 2.6.

This is a special case of Atar et al. (2024, proposition 2.5). We comment that the fact that VWCP is a classical solution to (2.18) and (2.19) has been established already in Sheng (1978). However, uniqueness of solutions is not covered there. □

In what follows, u always denotes the unique solution to (2.18) and (2.19).

In the following lemma, parts 1 and 2 are largely based on results from Sheng (1978). For completeness, we have included details on the construction from Sheng (1978) (as corrected in Sheng 1981) in Appendix B.

Lemma 4.1.

  1. (Optimality in the single-mode case). Assume (2.20) and recall that in this case ξA=ξ*,m for m as in (2.20). Then, with u as above, Equation (2.22) of Proposition 2.6 holds. Moreover, JWCP(z,S(1))=VWCP(z) for the admissible control system S(1)=(Ω,F,{Ft},P,B,Ξ,Z(1),L(1)), where (Z(1),L(1),B) is the RBM from (2.26) (assumed to be constructed on the original probability space), Ft=σ{Bs:s[0,t]} and Ξt=ξA.

  2. (Optimality in the dual-mode case). Assume (2.21) and recall that in this case (ξL,ξH)=(ξ*,m,ξ*,m). Then, there exists a switching point z*(0,) such that (2.23) of Proposition 2.6 holds. Moreover, SDE (2.27) possesses a weak solution (Ω,F,{Ft},P,B,Z(2),L(2)). Furthermore, one has JWCP(z,S(2))=VWCP(z) for the admissible control system defined by S(2)=(Ω,F,{Ft},P,B,Ξ,Z(2),L(2)), where Ξt=φ*(Zt(2)).

  3. Weak uniqueness holds for solutions to SDE (2.27).

Proof of Parts 2 and 3 of Proposition 2.6.

These results are contained in parts 1 and 2 of Lemma 4.1. □

For Markov control problems, a map from the state space to the control action space is often called a stationary (feedback) control policy, or a policy for short. For our WCP, a policy is thus a measurable map ξ¯:R+SLP. This term is used in Sheng (1978), and we adopt it in the next proof. Parts 1 and 2 take full advantage of several results from Sheng (1978), where a classical solution to Equations (2.18)–(2.19) is constructed, and a description of an optimal policy is provided.

Proof of Parts 1 and 2 of Lemma 4.1.

The Single-Mode Condition (2.20) corresponds to Sheng (1978, section 5.3, equations (41) and (42)). The Dual-Mode Condition (2.21) corresponds to the complementary case. It is stated in Sheng (1978, theorem 1, chapter 4) that a policy is optimal if and only if the cost associated to it is C2 and satisfies Sheng (1978, equation (14), chapter 4), which is the HJB Equation (2.18)–(2.19) in our notation. However, the equation studied there is more general, and in order to reduce it to our (2.18)–(2.19), one must take the switching costs to vanish (by setting the expression K = 0) and the reflection-absorption parameter to correspond to reflection only (by setting λ = 1).

Under the single-mode condition, the policy constructed has the simple form

ξ¯(z)=ξ*,m,zR+,
with the same m as in (2.20). It is shown that it is an optimal policy by computing the cost associated it and showing that it solves the HJB equation with its boundary conditions. The fact that (2.22) holds in this case is a direct consequence of the fact that the cost associated to the single-mode policy indeed solves the HJB equation. This completes the proof of part 1.

As for part 2, the claim that the SDE (2.27) possesses a weak solution is proved in Atar et al. (2024, lemma 4.1). Under the dual-mode case, the policy constructed in Sheng (1978) is

ξ¯z*(z)=ξ*,m𝟙zz*+ξ*,m𝟙z>z*,zR+,(4.1)
with the same m and m as in (2.21). By Sheng (1978, theorem 4, chapter 3), any policy of this form gives rise to a cost function that is C1 in all of (0,) and C2 in (0,)\{z*}. The value of z* that leads to an optimal policy is found by the principle of smooth fit, namely by requiring that the second derivative is continuous also at z*. The equation that states this smoothness condition, Sheng (1978, (61), chapter 5) (as corrected in Sheng 1981, (3.21)), turns out to have a unique solution z*(0,). The solution to the HJB equation is then the cost associated to ξ¯z* with that value of z*. The statement of part 2, by which the corresponding control system is optimal for the WCP, therefore follows from Sheng (1978, theorem 1, chapter 4). Once again, the very fact that this function solves the HJB equation implies that Equation (2.23) holds in this case. □

Proof of Part 3 of Lemma 4.1.

We slightly simplify the notation by writing (2.27)–(2.28) as

Zt=z+0tb*(Zs)ds+0tσ*(Zs)dBs+Lt,
where, with a*(x)=σ*(x)2, there exist constants b0,b1R and a0>0,a1>0, such that
b*(x)={b0,xz*,b1,x>z*,a*(x)={a0,xz*a1,x>z*.

In the remainder of this proof, a* and b* are written as a and b. Let A be the operator

Af(x)b(x)f(x)+12a(x)f(x),
on the domain D(A){fC0[0,):f(0)=0}, where C0[0,) denotes the set of compactly supported members of C[0,). If fD(A) and (Z, L, B) is a weak solution to the SDE, then, by Ito’s formula, the boundary property of L and the boundary condition f(0)=0, the process f(Zt)0tAf(Zs)ds is a martingale. Therefore, it follows from the existence result in part 2 of the lemma that, for every probability distribution ν on [0,), there exists a solution of the D[0,)[0,) martingale problem for (A,ν). We will use the definition of the stopped martingale problem of Ethier and Kurtz (1986, chapter 4, section 6). Then, for every probability distribution ν on [0,), there exists a solution of the stopped martingale problem for (A,ν,[0,23z*)) and of the stopped martingale problem for (A,ν,(13z*,)).

Define the operators A0 and A1 in the following way:

A0f(x)b0f(x)+12a0f(x),on the domain D(A0):=D(A)A1f(x)b(x)f(x)+12a(x)f(x),on the domain D(A1):=C0(R).

The D[0,)[0,) martingale problem for A0 is well posed (for instance by corollary 8.1.2, theorem 4.4.1, and proposition 4.3.1 of Ethier and Kurtz 1986). Therefore, for every probability distribution ν on [0,), there exists a unique solution of the stopped martingale problem for (A0,ν,[0,23z*)) by theorem 4.6.1 of Ethier and Kurtz (1986). Because, for every fD(A0)=D(A),

A0f|[0,23z*]=Af|[0,23z*],
every solution of the stopped martingale problem for (A,ν,[0,23z*)) is also a solution of the stopped martingale problem for (A0,ν,[0,23z*)); therefore, the solution of the stopped martingale problem for (A,ν,[0,23z*)) is unique.

Next, the DR[0,) martingale problem for A1 is well posed by exercise 7.3.3 of Stroock and Varadhan (2006) (it is shown there that the CR[0,) martingale problem for A1 is well posed, but every solution of the DR[0,) martingale problem for A1 has paths in CR[0,) almost surely). Therefore, for every probability distribution ν on [0,), there exists a unique solution of the stopped martingale problem for (A1,ν,(13z*,)) by theorem 4.6.1 of Ethier and Kurtz (1986). Because for every f1=D(A1) there exists fD(A) such that

f|[13z*,)=f1|[13z*,),Af|[13z*,)=A1f1|[13z*,),
every solution of the stopped martingale problem for (A,ν,(13z*,)) is also a solution of the stopped martingale problem for (A1,ν,(13z*,)); therefore, the solution of the stopped martingale problem for (A,ν,(13z*,)) is unique.

Now, one can apply theorem 4.6.2 in Ethier and Kurtz (1986) with U1[0,23z*),Uk(13z*,) for k2, to conclude that, for every probability distribution ν on [0,), the solution of the D[0,)[0,) martingale problem for (A,ν) is unique.

Finally, because, as already mentioned, every solution to the SDE is a solution to the martingale problem, the weak uniqueness of solutions to the SDE follows. □

Remark 4.2

(Symmetry Conditions). As Lemma 4.1 states, (2.20) is a necessary and sufficient condition for the optimal control of the WCP to not switch between modes. It is natural to ask whether it can be determined if the single- or the dual-mode condition holds under various symmetry conditions. Specifically, consider

μ^1kα1=μ^2kα2,k=1,2,(4.2)
μ^i1β1=μ^i2β2,i=1,2,(4.3)
CSi1=CSi2,i=1,2.(4.4)

As it turns out, each of the above three conditions is sufficient for (2.20). This is proved in Lemma C.1 in Appendix C. As a result, each of these conditions is sufficient for nonswitching. These conditions can arise naturally and occur in certain cases in the literature.

5. Asymptotic Optimality

In this section, we prove Theorem 2.13. Toward this, an important intermediate goal is to establish a weak convergence result, stated in Theorem 5.1. The proofs of both theorems rely on four main steps stated in Propositions 5.35.6.

5.1. Weak Convergence

5.1.1. Statement of Weak Convergence Result.

We will adopt the following convention regarding the six cases listed in Theorem 2.13. When a statement is said to hold in a certain case of Theorem 2.13, it is meant that the assumptions, as well as the policy, specified in this case are in force. For example, saying that a certain statement holds in case 1(a) of Theorem 2.13 means that it holds when the Single-Mode Condition (2.20) and the condition i1(ξA)=p hold and the P policy is applied, and, moreover, the weaker moment assumption m>2 is assumed (but m>m0 in case 1(b), for example). When a claim is stated without specifying a case, it is meant that it holds in each one of the six.

In addition to the rescaled processes already defined, the weak convergence results will be concerned with additional rescaled processes, namely,

A^in(t)=n1/2(Ain(t)λint),S^ikn(t)=n1/2(Sikn(t)μiknt),(5.1)
I^kn(t)=n1/2Ikn(t),L^n(t)=β1I^1n(t)+β2I^2n(t).(5.2)

With this notation, the Balance Equation (2.3) for Xn translates under scaling to

X^in(t)=A^in(t)+n1/2λintkS^ikn(Tikn(t))kn1/2μiknTikn(t).(5.3)
=A^in(t)kS^ikn(Tikn(t))+(n1/2λi+λ^in)tkTikn(t)(n1/2αiβk+μ^ikn).(5.4)

Thus, if we denote

F^tn=iA^in(t)αiikS^ikn(Tikn(t))αi+iλ^intαiikμ^iknαiTikn(t),(5.5)
we obtain the following representation for the workload:
W^tn=F^n(t)+L^n(t).(5.6)

The convergence of the rescaled primitives is a direct consequence of the central limit theorem for renewal processes (Billingsley 1999, section 17). Namely, the tuple (A^in,S^ikn) converges to what we denote by (Ai,Sik), comprising six mutually independent BMs with zero drift and diffusivity given by the constants λi1/2CAi and μik1/2CSik, which in Section 2.3, we have denoted by σA,i and σS,ik, respectively.

Theorem 5.1.

Let the assumptions of Theorem 2.13 hold. Then, (Tn,W^n,L^n,X^n)(T,W,L,X), where the latter is defined as follows.

  1. In cases 1, (a) and (b) of Theorem 2.13, (W, L) is the RBM and boundary term given by (2.26) and initial condition z = 0, and Tt=ξAt for all t.

  2. In cases 2, (a)–(d) of Theorem 2.13, (W, L) is the (unique in law) weak solution to the SDE (2.27) with initial condition z = 0, and letting Ξt=φ*(Wt), one has Tt=0tΞsds for t0.

  3. In all cases, Xp = 0 and Xq=αqW.

The significance of this result is that it implies that, under each of the proposed policies, limits of the processes exist and form admissible control systems for the WCP, which are, in view of Lemmas 4.1.12, optimal.

We next present a lemma from Atar et al. (2024) concerning limits of (A^n,S^n,Tn,F^n) under general sequences of policies. The Skorohod map, Γ:DR[0,)DR+[0,)×DR+[0,), takes a function ψ to a pair (φ,η), where

φ(t)=ψ(t)+η(t),η(t)=sup0stψ(s),t0.(5.7)

The corresponding maps ψφ and ψη are denoted by Γ1 and Γ2, respectively.

Lemma 5.2.

Let {Tn},TnAn be any sequence of admissible controls for the QCP for which lim supn J^n(Tn)<. Then, the following conclusions hold. The sequence (A^n,S^n,Tn) is C-tight. Along any convergent subsequence where (A^n,S^n,Tn)(A,S,T), one has

(A^n,S^n,Tn,F^n)(A,S,T,F),
where F is defined in (5.8). There exist on (Ω,F) processes (B,Ξ,Z,L) and a filtration {Ht} such that the tuple S=(Ω,F,{Ht},P,B,Ξ,Z,L) forms an admissible control system for the WCP with initial condition 0. These processes satisfy the relations
T=0·Ξsds,(Z,L)=Γ[F],Ft=iAi(t)+λ^itαii,kSik(Tik(t))+μ^ikTik(t)αi=0tb(Ξs)ds+0tσ(Ξs)dBs.(5.8)

Proof.

This is the content of Atar et al. (2024, lemmas 5.1 and 5.5). □

This lemma is our starting point for proving Theorem 5.1. Whereas it relates limits of processes associated with the QCP to an admissible control system for the WCP, note that it does not make any claim regarding X^n or W^n and, hence, by itself is not sufficient to relate the prelimit cost (defined in terms of X^n) to the WCP cost. In particular, the pair (Z,L) need not be the weak limit of (W^n,L^n). To proceed, one must show that under the proposed policies, along the sequence specified in Lemma 5.2, one has

(A^n,S^n,Tn,F^n,W^n,L^n)(A,S,T,F,W,L),(5.9)
where (W,L)=(Z,L). Once this is achieved, the lemma guarantees that the weak limit (W, L) satisfies
Wt=0tb(Ξs)ds+0tσ(Ξs)dBs+Lt,
with [0,)WtdLt=0, assuring that the limit tuple indeed forms an admissible system for the WCP. To go from here to the statements made in Theorem 5.1, one further needs to show that (W, L) are as given in (2.26) or (2.27) and that Xp = 0.

The propositions presented below address these issues as follows. Proposition 5.3 provides uniform integrability required to eventually deduce Theorem 2.13 from Theorem 5.1 and, in addition, ensures that the prelimit cost remains bounded so Lemma 5.2 may be applied. Proposition 5.4 shows that X^pn0 in probability. Proposition 5.5 states precisely what is needed to attain (5.9). Finally, Proposition 5.6 implies that (2.27) holds in the dual-mode case.

5.1.2. Main Steps Toward Weak Convergence.

Throughout what follows, the assumptions of Theorem 2.13 are in force. The four main steps required to achieve weak convergence and, later, Theorem 2.13, are as follows.

Proposition 5.3.

There exists ε0>0 such that

lim supn E0eγt(H^tn)1+ε0dt<.

As already mentioned, this uniform integrability result will allow us to deduce convergence of the costs, as stated in Theorem 2.13, from the convergence stated in Theorem 5.1. Moreover, because it also implies boundedness of the cost under the proposed policies, it enables us to use Lemma 5.2. The proof is given in Section 5.2.2.

Proposition 5.4.

For every t0>0, as n,

P(X^pnt02Θ^n)0.

The above type of result is often referred to as state-space collapse (SSC), as it asserts that, asymptotically, all workload is kept in one buffer, a property crucially used in establishing the one-dimensional state space description of the limiting dynamics, as well as asymptotic optimality, because all workload is held in the “less expensive” class. It is proved in Section 5.2.3.

Proposition 5.5.

Consider a subsequence as in Lemma 5.2, where (A^n,S^n,Tn)(A,S,T). Then, along this sequence, one has (A^n,S^n,Tn,F^n,W^n,L^n)(A,S,T,F,W,L), where F is given by (5.8), and (W,L)=Γ(F). In particular, (W^n,L^n) is a C-tight sequence, and the conclusions of Lemma 5.2 hold with (W,L)=(Z,L).

The proof appears in Sections 5.2.4 and 5.2.5.

Finally, the policies P and T2 that are proposed under the single-mode condition do not use the nonbasic activity of the active mode ξA. For the four policies employed under the dual-mode condition, we need the following control over the use of the nonbasic activities corresponding to ξL and ξH.

Proposition 5.6.

Consider the same subsequence as in Proposition 5.5 and cases 2(a)–(d) of Theorem 2.13. If (il,kl) (resp. (ih,kh)) denotes the nonbasic activity in ξL (resp. ξH), then for any t0>0 and ε>0,

0t0𝟙W^tnz*εdTilkln(t)0,0t0𝟙W^tnz*+εdTihkhn(t)0,(5.10)
in probability, as n.

To explain the role of this proposition, recall that if ξSLP, then the condition ξik=0 for some activity (i, k) not only implies that ξ is one is the modes ξ*,1 or ξ*,2, but also identifies which one by Lemma 3.2. Because any limit T of Tn is given as 0·Ξsds,ΞtSLP, this proposition implies that when workload is either below or above the switching point, the resource allocation asymptotically follows the respective mode of operation ξL or ξH. This is very close to stating that the pair (W, L) follows the SDE (2.27) and, indeed, is the basis for proving this fact. The proof of this proposition appears in Section 5.2.6.

5.1.3. Considerations for the Construction of Dual-Mode Policies.

As noted above, two of the key results that we need to prove Theorem 2.13 are state-space collapse (Proposition 5.4) and a boundary property stating that there is asymptotically no idleness of either server when there is work in the system (Proposition 5.5). The proofs of these results differ by case/policy and, for dual-mode policies, rely on the rules used as well as the way that workload is sampled. Here, we provide a brief description of the reasons underlying the policy definitions that we have used.

  • A difficulty arises in the proof of Proposition 5.4 in case 2(a), where the policy switches between two P rules. Only the dual-activity server in the current mode processes the HPC and the identity of the dual-activity server changes when switching modes. At each switching time, if the server processing the HPC in the new mode is busy with low-priority jobs and the service of the high-priority job at the other server ends, no server will process high-priority jobs for a time O(n1). In principle, this time could accumulate to let the number of high-priority jobs increase to a nonnegligible value. In order to prevent this, we designed switching between P rules to only occur at the time of service completion at the single-activity server. When switching, this server becomes dual activity and gives priority to the HPC (which is the single-activity class in P). In case 2(a), there is always at least one server processing the HPC, regardless of switching between modes.

  • Similarly, in order to prove Proposition 5.5 in case 2(b), we need to show that the number of HPC is not zero when there are low-priority jobs in the system. To make sure that the high-priority class does not receive too much service, switching between two T2 rules only occurs at the time of service completion at the single-activity server. When switching, the single-activity server becomes dual activity and now gives priority to the low-priority jobs if the number of HPC jobs is low. In case 2(b), as long as the number of HPC jobs is below the threshold there is at most one server working on HPC jobs, regardless of switching between modes.

  • In case 2(c), it should be noted that in the lower mode, the system looks similar to case 1(a), so one could consider using a P rule. Doing so, however, would cause difficulty in proving Proposition 5.5 for this case. Using a P rule keeps the number of HPC jobs O(1). At the moment of switching into the T2 rule, this can lead to the new single-activity server, which is dedicated to HPC, incurring idle time when there is work in the system. To avoid this situation, the T1 rule was used instead of P, guaranteeing that, at a switching time, there will not be too few HPC jobs in the system. A similar argument applies to case 2(d).

5.1.4. Proof of Weak Convergence.

Here, we prove Theorem 5.1 based on the four propositions.

Proof of Theorem 5.1.

First, by Proposition 5.3, one has that lim supn J^n(Tn)< for each one of the relevant policies Tn. As a result, the assumptions of Lemma 5.2 and Proposition 5.5 are valid. To summarize the conclusions from these results, fix a subsequence along which (A^n,S^n,Tn)(A,S,T). Then, there exists a tuple ({Ht},F,W,L,Ξ,B) such that, along this sequence,

(A^n,S^n,F^n,Tn,W^n,L^n)(A,S,F,T,W,L),
where F is given in terms of A, S, T by (5.8) and W and L are given by (W,L)=Γ(F). Moreover, S=(Ω,F,{Ht},P,B,Ξ,W,L) forms an admissible control for initial condition 0, and T=0·Ξsds. In particular,
W=F+L=0·b(Ξs)ds+0·σ(Ξs)dBs+Lt.(5.11)

Next, by Proposition 5.4, X^pn0 in probability. Also, by (2.11), X^qn=αqW^nαpX^pn, and, therefore, we now have, along the subsequence, (A^n,S^n,F^n,Tn,W^n,L^n,X^n)(A,S,F,T,W,L,X), where we denote

Xp=0,Xq=αqW.(5.12)

Note that the control system S thus constructed may depend on the subsequence. However, consider the following.

Claim.

In case 1, (a)–(b) of Theorem 2.13, (W, L) is the RBM, and its boundary term given by (2.26), and Tt=ξAt for all t. In cases 2(a)–(d) of Theorem 2.13, (W, L) is a weak solution to the SDE (2.27), and, moreover, Ξt=φ*(Wt) for a.e. t.

Suppose the above claim holds true. Then, the law of (W, L) is uniquely determined: in case 1 as an RBM; in case 2 as a weak solution to (2.27), for which weak uniqueness holds by Lemma 4.1.3. In particular, this law does not depend on the subsequence. Moreover, because by this claim and (5.12), the pair of processes (T, X) is uniquely determined by W (away from a P-null set), it follows that the law of (T,W,L,X) does not depend on the subsequence. This yields the convergence (Tn,W^n,L^n,X^n)(T,W,L,X) along the full sequence and completes the proof of the result. In what follows, the claim is proved.

Consider first the single-mode case, namely, cases 1(a)–(b) of Theorem 2.13. The policies employed are P and T2, and both do not use the nonbasic activity of the active mode ξA. In other words, if we denote this activity by (ia,ka), then under these policies, Tiakan=0 for all n. As a consequence, the limit process T must satisfy Tiaka(t)=0 a.s.; hence, Ξiaka(t)=0 for a.e. t, a.s. By the uniqueness statement made in Lemma 3.2, whenever ξ˜SLP and ξ˜iaka=0, one must have ξ˜=ξA. It follows that Ξt=ξA for a.e. t, and, hence Tt=ξAt. As a consequence, (5.11) holds as Wt=b(ξA)t+σ(ξA)Bt+Lt. That is, the pair (W, L) satisfies (2.26). This proves the first part of the claim.

Next, consider the dual mode, namely, cases 2(a)–(d) of Theorem 2.13. First, we will show based on Proposition 5.6 that, for every ε>0 and t0>0,

0t0𝟙{Wt<z*ε}dTilkl(t)=0,0t0𝟙{Wt>z*+ε}dTihkh(t)=0,(5.13)
holds a.s. Let g be a continuous function such that
𝟙w<z*εg(w)𝟙w<z*ε2,wR+.(5.14)

By the continuous mapping theorem, we have along the subsequence (g(W^n),Tn)(g(W),T). In addition, Tn is continuous with finite variation over compacts. By theorem 2.2 of Kurtz and Protter (1991),

0·g(W^tn)dTilkln(t)0·g(Wt)dTilkl(t).(5.15)

By Proposition 5.6, 0t0𝟙{W^tn<z*ε2}dTilkln(t)0 in probability. Hence, the left-hand side (LHS) in (5.15) converges to zero in probability. Thus, the RHS in (5.15) equals zero a.s., and, therefore, by the first inequality in (5.14), the first part of (5.13) is proved. The second part of (5.13) is proved analogously.

Next, clearly, Ξilkl(t)𝟙{Ξt=ξL}=0. Hence, by (5.13), 0t0𝟙{Wt<z*ε}𝟙{ΞtξL}Ξilkl(t)dt=0. Arguing, again, by the uniqueness statement in Lemma 3.2, one has Ξilkl(t)>0 whenever ΞtξL. It follows that, a.s.,

0t0𝟙{Wt<z*ε}𝟙{ΞtξL}dt=0,0t0𝟙{Wt>z*+ε}𝟙{ΞtξH}dt=0,(5.16)
where the second equality is proved analogously to the first one. Going back to (5.11), note that by (5.16), one has both 0t0b(Ξs)𝟙{Wt<z*ε}𝟙{ΞtξL}ds=0 and 0t0σ(Ξs)𝟙{Wt<z*ε}𝟙{ΞtξL}dBs=0. A similar statement hold for {Wt>z*+ε} and ξH. Hence, by (5.11) and the Definition (2.28) of the functions b* and σ*, it follows that
Wt=0t𝟙|Wsz*|εb*(Ws)ds+0t𝟙|Wsz*|εσ*(Ws)dBs+0t𝟙|Wsz*|<εb(Ξs)ds+0t𝟙|Wsz*|<εσ(Ξs)dBs+Lt,
for tt0. Because t0 is arbitrary, this is true for all t. Hence, denoting δtε=𝟙|Wtz*|<ε and using the boundedness of b(·),
Ut|Wt0tb*(Ws)ds0tσ*(Ws)dBsLt|γtε+|γ˜tε|+|γˇtε|,
where
γtε=c0tδsεds,γ˜tε=0tδsεσ(Ξs)dBs,γˇtε=0tδsεσ*(Ws)dBs.

Notice that Ut does not depend on ε, so if we manage to prove that the RHS converges to zero in probability as ε0, it follows that, for every t, Ut = 0 a.s. Hence, by continuity of this process, Ut = 0 for all t, a.s. That is, the processes (W, L, B) satisfy (2.27) a.s.

To this end, apply the occupation times formula (Revuz and Yor 1999, corollary VI.1.6), by which for any continuous semimartingale Y, one has, a.s.,

0t𝟙{Ys=0}dY,Ys=𝟙y=0Lty(Y)dy,
with Ly(Y) the local time of Y at y. Consider the above with Yt=Wtz*. Clearly, the RHS in the above display is zero. Moreover, Y,Yt=0tσ(Ξs)2ds, and because σ is bounded away from zero, we obtain that 0t𝟙{Ws=z*}ds=0 a.s. For fixed ω, one has for all t, 𝟙{|Wtz*|<ε}𝟙{Wt=z*} as ε0. Hence, by dominated convergence, γtε0 a.s. as ε0.

Next, for the stochastic integral γ˜ε, we have

E(γ˜ε)2=E0t(δsεσ(Ξs))2dscE0tδsεds=cE(γtε).

By local boundedness of γε and its a.s. convergence to 0 as ε0, it follows that γ˜tε0 in probability. A similar argument holds for γˇtε. We conclude that (W, L, B) satisfies (2.27). Finally, by (5.16) and the fact 0t𝟙{Ws=z*}ds=0 a.s. just proved, one has Ξt=φ*(Wt) for a.e. t, a.s., which completes the proof of the claim, and also of the result. □

5.1.5. Proof of Theorem 2.13 and Corollary 2.15.

As a consequence of Theorem 5.1 and Proposition 5.3, we have the following.

Proof of Theorem 2.13.

The weak convergence statements asserted in the theorem are already established in Theorem 5.1. For the AO results, we need to show that in each of the six cases J^n(Tn)V0=hqαqVWCP(0). Combining Theorem 5.1 with the identification of an optimal control for the WCP given in Lemma 4.1 shows that X^nX, where Xp = 0 and Xq=αqW, W is given by (2.26) or (2.27) in the respective cases, and, moreover,

V0=hqαqE0eγtWtdt.

The convergence stated above implies

H^tn=h·X^tnhqαqWt.(5.17)

By (2.6), J^n(Tn)=E0eγtH^tndt. Hence, the convergence J^n(Tn)V0 will follow from (5.17) once uniform integrability is established. Arguing along the lines of Bell and Williams (2001, pp. 640–643), introduce the measure dm=γeγtdt on (R+,R+) and invoke the Skorohod representation theorem to obtain from (5.17) that H^nhqαqW (m×P)-a.e. Accordingly, uniform integrability of Hn w.r.t. m×P suffices to obtain J^n(Tn)V0. However, this is ensured by Proposition 5.3, for

lim supn[0,)×Ω(H^n)1+ε0d(m×P)=γ lim supn E0eγt(H^tn)1+ε0dt<,
and the result is proved. □

Proof of Corollary 2.15.

As far as the proof of the Weak Convergence (2.29) and AO are concerned, there is no difference between the setting of Theorem 2.13(1), where the LP has multiple solutions but the single-mode condition holds, and the case where it has a single solution. Therefore, this result is a corollary of Theorem 2.13(1). □

5.2. Proof of Propositions 5.3–5.6

In Section 5.2.1, we provide several useful estimates. Then, Propositions 5.3, 5.4, 5.5, and 5.6 are proved in Section 5.2.2, Section 5.2.3, Sections 5.2.4 and 5.2.5, and Section 5.2.6, respectively.

5.2.1. Auxiliary Lemmas.

Two estimates on the rescaled primitives, A^in and S^ikn, are provided in (5.18) and Lemma 5.7, and a certain estimate on the maximum service duration is given in Lemma 5.9.

Because the assumptions on Ain and Sikn are similar, the estimates are stated for A^in, but apply also for S^ikn. Recall that aˇi(l) are interarrival times of Ai and thus ain(l)(λin)1aˇi(l) are the interarrival times of Ain. Recall E[aˇi(1)m]< for a constant m>2. The first estimate is Krichagina and Taksar (1992, theorem 4), which states that for any 2κm,

E[A^intκ]c(1+t)κ/2,(5.18)
for a constant c that does not depend on n or t. The next useful estimate is as follows.

Lemma 5.7.

Let ν1,ν2(0,1) be such that ν1ν2+12 and assume that h0(m21)ν1mν2>0 (note, in particular, that for every ν1(0,12], there exists ν2>0 satisfying these conditions). Fix c1>0. Then, for any h<h0,

P(wt0(A^in,nν1)c1nν2)cnh(1+t0)m/2,nN,t01,
where c=c(c1,ν1,ν2,m) does not depend on n or t0.

The proof appears in Appendix A.

Remark 5.8.

We sometimes use the balance equation in the following form, which follows from (5.4), namely,

X^in(t)=f^in(t)+n1/20t(λikμikΞikn(s))ds,(5.19)
where
f^in(t)A^in(t)kS^ikn(Tikn(t))+tλ^inkTikn(t)μ^ikn.

Note that F^n of (5.5) is given by F^n(t)=iαi1f^in(t). Then, using the 1-Lipschitz property of the trajectories of Tikn, it is easy to see that both estimates above imply some estimates for f^in. In particular, by (5.18), Ef^intκc(1+t)κ. Moreover, under the assumptions of Lemma 5.7 and the additional assumption that ν2<ν1, the conclusion of the lemma holds for f^in and F^n.

Next, we give an estimate on the maximal service duration and interarrival time up to a given time. The time in service by t of a given job is defined as the time that the job has spent in service up to time t. Let TIS(n,i,k,l,t) denote the time in service by t of the lth job in activity (i, k). If service to job l has completed by time t, then, clearly, TIS(n,i,k,l,t)=uikn(l), but if it is still in service, TIS(n,i,k,l,t)<uikn(l). Of course, TIS(n,i,k,l,t)=0 for jobs for which service has not started by t. For t > 0 and a real-valued path φ, denote

Λ(φ,t)=sup{t2t1:0t1t2t,φt2=φt1}.

Then, for activity (i, k), the maximal time in service by time t, namely, suplTIS(n,i,k,l), is bounded above by Λ(Sikn,t). We will need an upper bound on the service time as well as the interarrival times, and to this end define

emaxn(t)=maxi,k Λ(Sikn,t)maxi Λ(Ain,t).(5.20)

This process also bounds from above all service durations completed by time t.

Lemma 5.9.

One has E[(emaxn)2]cn1(1+t) for a constant c that does not depend on n or t. Moreover, for any t< and c1>0, P(emaxn(t)c1na¯1)0, as n+.

The proof appears in Appendix A.

5.2.2. Uniform Integrability.

Here, we prove Proposition 5.3. We sometimes need to refer to the variable keeping track of the current mode, which in the various policies is defined in slightly different ways according to different sampling times. Denote

MODEn(t)={ξL if the current mode is lower workload,ξH if the current mode is higher workload.

Proof of Proposition 5.3.

The proof has three parts; part 1 appears below, while parts 2 and 3 are deferred to Appendix A. Fix any one of the sequences of policies TnAn for which we attempt to prove AO.

Part 1. This part is concerned with the case where, whenever the workload in the system is sufficiently large, policy P is active. This covers case 1(a) of Theorem 2.13, where the system has a single mode and the fixed priority policy P is applied, as well as case 2(a), where the dual-mode policy PP is applied. In this case, we will prove that the statement of the lemma holds with ε0=1, and specifically that, under the given sequence, E[(H^tn)2] is bounded by a polynomial in t for all n. By (2.11), this is equivalent to the same property holding for E[(W^tn)2].

To prove the result in this case, assume that in the single (resp., dual)-mode case, the active mode ξA (resp., the high-workload mode ξH) is in canonical form. Thus, provided that the workload in the system exceeds z* (when applicable), class 1 (resp., 2) is the dual (single)-activity class, and server 1 (resp., 2) is the single (dual)-activity server. In addition, p = 2: class 2 is the HPC. First, we provide a bound on the second moment of X^2n. In the dual-mode case, fix K large enough so that X^2n(t)K implies W^tnz*+1; in the single-mode case let K = 1. Given t > 0, consider the event X^2n(t)>K. Let τ=τn(t) be defined by

τ=sup{s[0,t]:X^2n(s)K}.

Because the system starts empty, 0τt, and because the jumps of the normalized queue length are of size n1/2,X^2n(τ)K+1. Thus,

X^2n(t)X^2n(t)X^2n(τ)+K+1.

By (5.3), denoting Cn(t)=iA^int+ikS^iknt,

X^2n(t)X^2n(τ)2Cn(t)+n1/2λ2n(tτ)n1/2μ22n(T22n(t)T22n(τ)).

Because X^2nK in [τ,t], the priority policy corresponding to a mode given in canonical form (either ξA or ξH) is in force after an initial time before the current mode updates and there are class 2 jobs to serve. We can bound the time until server 2 prioritizes class 2 and starts serving it at full rate in [τ,t] by emaxn(t). If there currently is a class 2 job being served by server 2, server 2 only serves class 2 jobs for the whole period and

T22n(t)T22n(τ)=tτ.

If there currently is a class 1 job being served by server 2, because service is nonpreemptive, server 2 has to finish this job. If at that time, the current mode is ξH (resp. ξA in the single-mode case), server 2 prioritizes class 2 from that point on. If at that time, the current mode is ξL, the workload is then sampled because a service finished at the single activity server. The current mode changes to ξH and stays until t. In both cases, we get

T22n(t)T22n(τ)tτemaxn.

Also, in the case under consideration, one has μ22>λ2. Hence, for all sufficiently large n, μ22n>λ22n. Moreover, c1supnn1μ22n<. Hence,

X^2n(t)2Cn(t)+c1n1/2emaxn(t)+K+1.

The above inequality holds also on the complementary event, namely, when X^2n(t)K. Thus, using (5.18) and Lemma 5.9, we obtain

E[X^2nt2]c(1+t).(5.21)

In the next step, we bound W^tn. Let K˜ be a constant that is sufficiently large to ensure that X^1n(t)K˜ implies W^n(t)z*+1 (where, again, K˜=1 in the single-mode case). Given t > 0, consider the event X^1n(t)>K˜ and let σ=σn(t) be

σ=sup{s[0,t]:X^1n(s)K˜}.

Then, clearly, σ[0,t]. Because during [σ,t], there are at least two jobs of class 1 in the system, both servers are never idle during [σ,t]. Because one has X^1n(σ)K˜+n1/2, it follows that W^σnc(1+K˜+X^2n(σ)). Hence,

W^tnW^tnW^σn+c(1+K˜+X^2nt).

By (5.6) and the nonidling of both servers during [σ,t], by which L^n remains flat during this interval, we have W^tnW^σn=F^tnF^σn. Thus, by (5.5), for a constant c (that may depend on K˜),

W^tnc(Cn(t)+t+1+X^2nt).

Clearly, the above bound is valid also in the complementary event, X^1n(t)K˜. We can therefore apply (5.18) and (5.21), to obtain E[(W^tn)2]c(1+t) for some constant c, for all n and t. Consequently, the same holds for the second moment of H^tn, and the result follows. This completes part 1 of the proof. The remaining parts appear in Appendix A. □

5.2.3. State Space Collapse.

We now prove Proposition 5.4. Assume that either the active mode ξA or the lower workload mode ξL (whichever is applicable) is in canonical form. Let

τ=τcn=inf{t0:X^pn(t)2Θ^n}.

This random time is used outside this proof with the notation τcn, but in this proof, the shorter notation τ is used. Then,

P(suptt0X^pn(t)2Θ^n)P(τt0).

We will prove the lemma by showing that the RHS above converges to zero as n. On the event {τt0}, define

σ=σn=sup{tτ:X^pn(t)3Θ^n2}.

The proof relies on the fact that, under our policies, when the number of HPC jobs is above Θn, it is served at a rate that is enough to deplete the queue in all cases. The first step toward this goal is the following.

Lemma 5.10.

There exist constants c1,c2>0 such that, on {τt0},

στ(λpkμpkΞpkn(t))dtc1(τσ)+c2emaxn,(5.22)
with emaxn defined in (5.20).

Proof.

First, by definition of σ, and τ, and the fact that jumps of X^n are of size n1/2<Θ^n/2 for large n, we obtain

inft[σ,τ]X^pn(t)Θ^n.

We address here one case only; the proof under the remaining cases is deferred to Appendix A.

  • Case 1(a): In this case, we use the P policy, which is single mode. Because the active mode is in canonical form and i1(ξA)=p, p = 2, and server 2 prioritizes class 2. It is possible that server 2 is busy with the “wrong” class of job at time σ, but as soon as that job finishes, server 2 will only serve the class 2 jobs in the system:

    στΞ22n(t)dtτσemaxn.

Thus,

στ(λ2kμ2kΞ2kn(t))dt(τσ)(λ2μ22)+μ22emaxn.

To show that λ2μ22<0, note that since the active mode is in canonical form, λ1α1>β1, which implies λ2α2<β2 by (3.1).

The remaining cases appear in Appendix A. □

Now that Lemma 5.10 has been proved in all cases, the proof of Proposition 5.4 does not need to differentiate between them.

Proof of Proposition 5.4.

Let ν2=1/2a¯1/4 and ν1(ν2,1/2). Recall that Θ^n=n1/2na¯, as defined in (2.32), so that Θ^n=n1/2n1/2ν2nν2. Notice that, as required in Lemma 5.7, ν1ν2+12. Let us introduce the event

Ω1={τt0,X^pn(τ)X^pn(σ)Θ^n4,inft[σ,τ]X^pn(t)Θ^n}.

For n large enough, one has X^pn(σ)<74Θ^n. Consequently, {τt0}=Ω1. We obtain

P(τt0)=P(Ω1)=P(Ω1{τσnν1})+P(Ω1{τσ>nν1}).(5.23)

Picking up on (5.19), by Lemma 5.10

X^pn(τ)X^pn(σ)=f^pn(τ)f^pn(σ)+nστ(λpkμpkΞpkn(t))dtf^pn(τ)f^pn(σ)cn(τσ)+cnemaxn.

Notice that on the event {τσnν1,τt0},

X^pn(τ)X^pn(σ)wt0(f^pn,nν1)+cnemaxn.

Thus,

P(Ω1{τσnν1})P(wt0(f^pn,nν1)+emaxnnnν22)P(wt0(f^pn,nν1)nν24)+P(cemaxnnnν24).

Recall that ν1(ν2,1/2), so nν1<nν2. By Lemma 5.7 and Remark 5.8, the first term converges to zero. By Lemma 5.9 and ν2=1/2a¯,

P(emaxnc4nν21/2)=P(emaxnc4na¯1)0.

For the second term in (5.23), notice that on {τσ>nν1,τt0},

X^pn(τ)X^pn(σ)2f^pn(t)t0+emaxnncnnν1,
and
X^pn(τ)X^pn(σ)Θ^n2n1/2.

Hence,

P(Ω1{τσ>nν1})P(2f^pnt0+emaxnncnnν1+Θ^n2n1/2).

By Lemma 5.9, emaxn is smaller than na¯1=o(n1/2). By Remark 5.8, 2f^pnt0 is a tight sequence of random variables (RVs) (for t0 fixed). Because ν1<1/2,nnν1+. The claim follows. □

5.2.4. Boundary Behavior.

The goal of this section and the following one is to prove Proposition 5.5. The key is the following lemma, which states, roughly speaking, that L^n is approximately the boundary term corresponding to F^n.

Let c3=3α1α2.

Lemma 5.11.

Fix t0>0. With

R¯tn=0t 𝟙W^snc3Θ^ndL^sn,(5.24)

R¯t0n0 in probability as n.

This lemma is proved in the next subsection. Let us show how Proposition 5.5 now follows.

Proof of Proposition 5.5.

In addition to R¯n just introduced, we shall need the following definitions:

Ztn=max(W^tnc3Θ^n,0),R˜tn=0t𝟙W^sn<c3Θ^ndL^sn,Δtn=ZtnW^tn.

By (5.6) and definition of the new processes, one has

Ztn=F^tn+Δtn+R¯tn+R˜tn.

Consider the pair (Zn,R˜n). The first component is nonnegative. The second is nonnegative, nondecreasing, and, moreover,

[0,)ZtndR˜tn=[0,)max(W^tnc3Θ^n,0)𝟙W^tn<c3Θ^ndL^tn=0.

Hence, by Skorohod’s Lemma, (Zn,R˜n)=Γ(F^n+Δn+R¯n). Hence,

W^n=Γ1(F^n+Δn+R¯n)Δn,L^n=Γ2(F^n+Δn+R¯n)+R¯n.(5.25)

Recall that we are considering a subsequence along which (according to the assumptions and to Lemma 5.2), (A^n,S^n,Tn,F^n)(A,S,T,F), with F as in (5.8). Moreover, by the definition of Zn and Δn, we have 0Δtnc3Θ^n, whereas by Lemma 5.11, R¯n0 in probability. By the continuity of the map Γ, we therefore conclude from (5.25) that, on the same subsequence,

(A^n,S^n,Tn,F^n,W^n,L^n)(A,S,T,F,W,L),
where (W,L)=Γ(F). This completes the proof. □

5.2.5. Proof of Lemma 5.11.

We first explain how the proof changes between the cases.

  • Under the P policy, both servers can process the low priority jobs. This means that idling can only occur if the low-priority class has few jobs, and, in that case, the total number of jobs is also low by Proposition 5.4.

  • Under the T2 rule, no server can incur idleness when the high-priority class is above the threshold. In addition, the high-priority class takes a small time to reach above Θn and does not empty below two jobs after that time with high probability unless the total workload is close to zero (Lemma 5.13). This means that neither server will idle except when there are almost no jobs in the system.

  • Under the PP policy, Proposition 5.4 is still enough to prove Lemma 5.11 in the same way as in the single-mode case P.

  • Under the T2T2 policy, Lemma 5.12 and 5.13 hold. Because of that, Lemma 5.11 holds for the same reason as in the nonswitching case T2.

  • When using a P rule, the high-priority class could become zero with a lot of LPC jobs in the system, and switching to the T2 rule could lead to idleness, even though there are a lot of low-priority jobs (approximately αqz*). Thus, we introduce the T1 rule in place of the P rule in this case. This ensures that the number of high-priority jobs does not decrease too much during the corresponding period.

In some cases, some idleness can occur when the high-priority class starts with too few jobs, but in those cases, it takes a small time to leave such states.

In cases 1(a) and 2(a), Lemma 5.11 is a direct consequence of the state space collapse. Let us introduce two random times and a lemma that we will use in cases 1(b) and 2(b)–(d). Fix t0>0. Let

ρn=inf{t0:X^pn(t)Θ^n}t0,τrn=inf{t>ρn:X^pn(t)=2n1/2, and X^qn(t)Θ^n}.

Lemma 5.12.

If any of the following conditions hold, we have

R¯ρnn0 in probability.(5.26)
  • Case 1(b), (2.20) and i2(ξA)=p.

  • Case 2(b), (2.21) and i2(ξL)=i2(ξH)=p.

  • Cases 2(c) and 2(d), (2.21) and i1(ξL)=i2(ξH).

Lemma 5.13.

Under the same assumptions as the previous lemma,

P(τrnt0)0.(5.27)

The proofs of Lemmas 5.12 and 5.13 appear in Appendix A.

Remark 5.14.

The above two lemmas do not address cases 1(a) and 2(a). The reason for this is that in these cases, we can directly prove Lemma 5.11 when using a P or PP policy.

Proof of Lemma 5.11.

Here, we only treat one case, deferring the remaining cases to Appendix A.

  • Case 1(a), P policy:

In this case, p = 2, and no server can be idle when X12. Thus,

0t0𝟙X^1n(t)2n1/2dL^tn=0.(5.28)

For any δ>0,

P(R¯t0nδ)P(0t0(𝟙X^2n(t)2Θ^n+𝟙X^1n(t)2n1/2)dL^tnδ)=P(0t0𝟙X^2n(t)2Θ^ndL^tnδ)P(𝟙suptt0X^2n(t)2Θ^nL^n(t0)δ)P(suptt0X^2n(t)2Θ^n)=P(τcnt0).

By Proposition 5.4,

P(τcnt0)0.(5.29)

The treatment of the remaining cases appears in Appendix A. □

5.2.6. Fast Switching

Proof of Proposition 5.6.

Fix t0 and ε>0. Assume that ξL is in canonical form. Then, (il,kl)=(2,1). Let

τf=inf{t0:0t𝟙W^tnz*εdT21n(t)>0},tmin=sup{tτf:W^tnz*},tmax=inf{ttmin:W^tnz*ε},τ1=inf{ttmin:MODEn(t)=ξL},
where the dependence on n is suppressed. The first statement of the lemma will be proved once we show P(τft0)0. We omit the proof of the second statement, which is similar. To this end, let
κn=inf{s0 s.t. tt0,W^tsnz*,W^tnz*ε}.

If suptt0W^tnz*, the current mode never changes, so the single-activity server is dedicated to only one class for the whole period and the nonbasic activity is never used. Thus,

{τft0}{tmaxt0}.

Note that we have used the fact that, for all of our policies, jobs are never routed to a nonbasic activity of the current mode.

The remainder of the argument is based on the following fact, which must be argued separately for each case. This is concerned with the difference τ1tmin, which, although case-dependent, can in all cases be shown to satisfy

limn+P(τ1tmin>emaxn)=0.(5.30)

By Proposition 5.5, W^n is C-tight. Hence, for any constant c > 0, P(cκnna¯1)0. On the other hand, by Lemma 5.9, P(emaxnna¯1)0. Thus,

P(emaxncκn)0.(5.31)

In order for 0t0𝟙Wtnz*εdT21n(t) to become positive, tmax must be smaller than t0 and

tmaxτ1<emaxn.

It is not possible for tmaxτ1emaxn to occur on {τft0}. If that were the case, server 1 would necessarily finish service of the job it was in the process of serving at time τ1 before the workload has time to reach z*ε. When MODEn(t)=ξL in canonical form, server 1 can only take new class 1 jobs, regardless of the rule. Even if class 1 has no job in the queue, the nonbasic activity is not used after the possible residual job that was in service at time τ1. In addition, by definition of tmin, this is the last time the mode switches from upper to lower workload before τf. This would prevent 0τf𝟙W^tnz*εdT21n(t) from becoming positive and is also the reason why tmax needs to be smaller than t0 for τf to be smaller than t0.

By definition of tmax and κn,

P(tmaxt0,tmaxtmin<κn)=0.

We next show that

limn+P(tmaxt0,τ1tmax)=0.(5.32)

We have

P(tmaxt0,τ1tmax)=P(tmaxt0,τ1tmax,tmaxtminκn)P(τ1tmin+κn)P(τ1tmin+κn,emaxnκn)+P(τ1tmin+κn,emaxn>κn)P(τ1tmin+emaxn)+P(emaxn>κn).

Both terms converge to zero, the first by (5.30) and the second by (5.31).

We can now prove the lemma based on (5.32), (5.30), and (5.31). We have

P(τft0)=P(τft0,tmaxt0)=P(τft0,tmaxt0,τ1tmax)+P(τft0,tmaxt0,τ1tmax,tmaxτ1<emaxn)P(tmaxt0,τ1tmax)+P(tmaxt0,tmaxtmin2emaxn)+P(τ1tmin>emaxn)P(tmaxt0,τ1tmax)+P(κn2emaxn)+P(tmaxt0,tmaxtmin<κn)+P(τ1tmin>emaxn).

The first term goes to zero by (5.32), the second by (5.31), the third is zero, and the fourth goes to zero by (5.30). This completes the proof.

It remains to prove (5.30). As noted above, the proof differs by case.

Case 2(a): The current mode changes to ξL after the first service completion of a job at the single-activity server for ξH (which is server 2) at or after tmin. Note that tmin must correspond to a service completion. If tmin corresponds to a service completion at server 2, the τ1=tmin. If tmin corresponds to a service completion at server 1, then the mode will not change, and τ1 will correspond to the next service completion at server 2. This will occur before tmin+emaxn if server 2 is busy (serving class 1) at tmin. Note that, on {τcnt0},X^2n(tmin)<2Θ^n, so that

X1n(tmin)α1(Wtminn2α21Θn)α1(n1/2z*12α21Θn)2,
so server 2 is busy at tmin. Thus,
P(τ1tmin>emaxn)P(τcnt0),
which converges to zero by Proposition 5.4. This proves (5.30).

Case 2(b): The current mode changes after the first service completion of a job at the single-activity server (which is server 2) at or after tmin. Server 2 is dedicated to HPC jobs. Under {τrnt0,ρntmin}, there are at least two HPC jobs in the system at time tmin, so the single-activity server cannot be idling at that time. Thus,

P(τ1tmin>emaxn)P(τrnt0)+P(ρn>tmin).

By Lemma 5.13, P(τrnt0) converges to zero. In addition,

P(ρn>tmin)=P(ρn>tmin,tmin>τ˜)+P(ρn>tmin,tminτ˜)P(ρn>τ˜)+P(tminτ˜)P(ρn>τ˜,τcnt0)+P(ρn>τ˜,τcn<t0)+P(X^2n(tmin)<α2z*/2)P(ρn>τ˜,τcnt0)+2P(τcn<t0).
where τ˜ is defined in the proof of Lemma 5.12. Both terms converge to zero, the first by Lemma 5.13, and the second by Proposition 5.4. This proves (5.30).

Cases 2(c) and 2(d): The current mode changes after the first service completion or arrival of a low- or high-priority job after tmin so under {tmaxt0},

τ1tminemaxn,

Thus, (5.30) follows from Lemma 5.9. □

Acknowledgements

The authors are grateful to Cristina Costantini for providing us with the proof of Lemma 4.1, part 3, and to two anonymous referees, as well as the anonymous associate editor, for their thoughtful suggestions that helped improve the exposition considerably.

Appendix A. Proofs of Lemmas

Proof of Lemma 5.7.

In this proof, m is written as m. Note first that it suffices to prove

P(wt0(A^n,nν1)nν2)cnh0(1+t0)m/2,nN,(A.1)
where c=c(ν1,ν2,m) does not depend on n or t0. Indeed, if c11, the result follows directly from (A.1). If c1(0,1), let ν¯2>ν2 be such that it satisfies all hypotheses of the lemma. Namely, ν¯2(0,1),ν1ν¯2+12, h¯0(m21)ν1mν¯2>0. Then, by (A.1), for n such that c1nν2nν¯2,
P(wt0(A^n,nν1)c1nν2)c(1+t0)m2nh¯0.

Moreover, h¯0 can be made arbitrarily close to h0 by choosing ν¯2 close to ν2. This shows that the desired inequality holds for all large n, and by making c=c(c1,ν1,ν2,m) larger, for all nN.

We now prove (A.1). As before, c denotes a positive constant whose value may change from line to line; here it may depend on (ν1,ν2,m) but not on n, t0. By (5.1),

A^n(t)A^n(s)=n1/2(An(t)An(s))n1/2λn(ts).

Thus,

P(wt0(A^n,nν1)nν2)P(An(t0)>2λnt0)+P(Ω+n)+P(Ωn),(A.2)
where
Ω+n={An(t0)2λnt0,s,t[0,t0],0tsnν1,An(t)An(s)n12ν2+λn(ts)},Ωn={An(t0)2λnt0,s,t[0,t0],0tsnν1,An(t)An(s)n12ν2+λn(ts)}.

Consider the event Ω+n. Because an(l) are the interarrival times of An, on this event, there must exist l02λnt0 and Rnν1 such that

l=l0l0+n12ν2+λnRan(l)R.

Recall that Eaˇ(l)=1. Letting a¯n(l)=an(l)(λn)1, we have Ea¯n(l)=0. Then, taking r=λnR, using λnc1n where c1=supλnn<, we have

P(Ω+n)P(j2λnt0,rnν1λn,l=l0+1l0+n12ν2+ran(l)(λn)1r)P(j2c1nt0,rc1n1ν1,l=l0+1l0+n12ν2+ra¯n(l)(λn)1n12ν2).

Let Ml1n=l=1l1a¯n(l),l1=0,1,2,, and note that it is a martingale. For a real-valued function X on Z+ let

osc(X,l1,l2)=max{|X(l3)X(l4)|:l3,l4[l1,l2]},0l1l2.

Then, using 12ν21ν1 and denoting ρ=[c1n1ν1],

P(Ω+n)P(j2c1nt0,osc(Mn,l0,l0+2c1n1ν1)c11n12ν2)P(j[0,2c1nt0]{0,ρ,2ρ,},osc(Mn,l0,l0+ρ)c11n12ν2/3)1(1P(Mnρc11n12ν2/6))ct0nν1.

Because n1λnλ>0, we have the lower bound λn>cn for some c > 0 and all large n. Hence Burkholder’s inequality shows that

E(Mnρ)mcE(ρ|a¯n(1)|2)m2cn(1ν1)m2(λn)mcn(1+ν1)m2.

Hence, for any a > 0, P(Mnρ>a)camn(1+ν1)m2, and, therefore,

P(Ω+n)1(1cn(ν12ν2)m2)ct0nν1.

Note that ν1>2ν2 by the assumption h0>0. Now, if ε(0,12) and a > 0, then, with c2=2 log 2, 1(1ε)a1ec2aεc2aε. This gives

P(Ω+n)cn(ν12ν2)m2t0nν1=ct0nh0.

By a similar argument, the same estimate holds for P(Ωn). An application of (5.18) gives

P(An(t0)>2λnt0)P(A^nt0>cn1/2)cE(A^nt0m)nm/2cnm2(1+t0)m2.

Hence, by (A.2),

P(wt0(A^n,nν1)nν2)ct0nh0+c(1+t0)m2nm2.

It follows from ν1,ν2(0,1) that h0<m2. The result follows. □

Proof of Lemma 5.9.

Fix i, k. Denote Ytn=Λ(Sikn,t). For any u > 0, if Ytnu, then there must exist 0t1<t2t with t2t1=u and Sikn(t2)=Sikn(t1); hence, by the Definition (5.1) of S^ikn,

S^ikn(t1)S^ikn(t2)=n1/2μikn(t2t1)c2n1/2u,
for some constant c2 that depends only on the sequence {μikn}. Hence, Ytn2c21n1/2S^iknt. The first result now follows from (5.18) with κ = 2.

To prove the second statement, we will proceed in two steps. First, we will show that the number of interarrival times involved in the maximum is at most cn with probability going to one, then show that the maximum over cn variables has the right order of magnitude.

To simplify the notation, fix (i, k) and remove them from the notation of Sikn,uikn,μ^ikn, etc. The claim will be proved for emaxn(t) defined as in (5.20), but without maximizing over (i, k); clearly, this is sufficient. Note that

Sn(t)=sup{s0:l=1sun(l)t}.

Let

Kn=inf{s0:l=1sun(l)t0}.

Then,

emaxn(t0)sup{un(s):l=1s1un(l)t0}sup{un(s):sKn}.

For any c20,

P(Knc2n)P(p=1c2nun(p)t0)=P(p=1c2nuˇ(p)μnt0)=P(1c2np=1c2nuˇ(p)μt0c2+μ^nt0c2n1/2).

If c2>μt0, by the law of large numbers, the RHS converges to 0 as n. Next, by independence of service times, for any c > 0,

UnP(maxlc2nun(l)cna¯1)=1P(un(1)cna¯1)c2n.

Using 1(1x)nc3nx, letting c4=c2c3 and denoting ε¯=m2>0, we obtain

Unc4nP(un(1)cna¯1)c4nP(uˇ(1)cμnna¯1)=c4nP((uˇ(1))2+ε¯(cμnna¯1)2+ε¯)c4nE[(uˇ(1))2+ε¯](cμnna¯1)2+ε¯,
where the last inequality uses Assumption 2.8. Next, by the definition in (2.31) of a¯, we have that a¯>12ε¯4(ε¯+2), hence
(2+ε¯)(1+a¯1)=a¯(2+ε¯)(2+ε¯)(14+14+2ε¯)=12+ε¯4+2+ε¯4+2ε¯=1+ε¯4.

Thus,

nE[(uˇ(1))2+ε¯](cμnna¯1)2+ε¯=O(nε¯4).

Hence, for any c > 0, there exists c2 such that

P(emaxncna¯1)P(Knc2n)+P(emaxncna¯1,Knc2n)P(Knc2n)+P(maxlc2nun(l)cna¯1),
and both terms have been shown to converge to zero. □

Proof of Proposition 5.3

(Continued from Section 5.2.2). Part 1 of the proof of this proposition appears in Section 5.2.2; here, we provide the remaining parts.

Part 2. Consider the case where T1 is applicable when the workload is sufficiently large. This covers case 2(d) of Theorem 2.13, in which the policy T2T1 applies (none of our proposed policies implement T1 as a single-mode policy). The proof given in part 1 is applicable, for the following reasons. In the first step, during the analyzed time interval [τ,t], one has X^2K>Θ^n, and, therefore, there is no difference between how P and T1 behave during this interval. In addition, the workload is sampled at each arrival/service, which means that

T22n(t)T22n(τ)tτemaxn.

In the second step, the argument given for nonidling of both servers during [σ,t] again holds here, similarly to part 1, upon noticing that, because σ corresponds to an arrival, it is a sampling time, and so the current mode is either already the high mode or switches to the high mode at that time. (It is possible that, if σ is a mode switching time, then server 1 was idle just before σ. But, if so, it starts to serve class 1 at σ.) The remaining details need no adaptation.

Part 3. Finally, consider the policies that employ T2 for high workload levels, namely, the policies T2, T2T2, and T1T2, covering all remaining cases of Theorem 2.13. In these cases, the stronger moment assumption is in force, and the goal is to prove that there exists ε0>0 such that E[(W^tn)1+ε0]pol(t) for all n and t, for some polynomial pol. As before, let ξA or ξH be in canonical form, in the single-mode and, respectively, dual-mode case. Fix a constant K>z* in the dual-mode case and K = 1 in the single-mode case. Given t, consider the event W^tn>K. Let

τ1=τ1n=sup{s[0,t]:W^snK}.

Then, W^τ1nK+1, and, moreover, W^nK during [τ1,t]. Although this lower bound on the workload is sufficiently large to guarantee that W^n corresponds to the higher workload mode, it is possible that at time τ1, the current mode variable still equals the lower workload mode. We argue that the time it takes to switch to the upper workload mode is bounded by 2emaxn in both T1T2 and T2T2. In the former case, the current mode switches as soon as a there is a new arrival or departure. In the latter case, one possibly has to complete the service of a job at server 2, which is server k1(ξL). It is possible that there are no jobs allowed to be routed to server 2 at time τ1. Wait for an arrival of class 1 job, and service completion of this job at server 2. At this time, it is guaranteed that mode has switched to ξH if it was not ξH earlier. Thus, if we let

τ2=inf{sτ1:MODEn(s)=ξH}t,
we have τ2τ12emaxnt.

According to the rules of T2, server 2 must be busy throughout the interval [τ2,t]. Thus, I^2n(t)=I^2n(τ2). Hence, by (5.6), and using I^kn[a,b]n1/2(ba) (by (5.2)), we have

W^tn=W^τ1n+F^n[τ1,t]+L^n[τ1,t]=W^τ1n+F^n[τ1,t]+β1I^1n[τ1,t]+β2I^2n[τ1,t]K+1+2F^nt+cn1/2emaxn+β1I^1n[τ2,t],
holds on the event W^tn>K. On the complementary event, W^tnK. Use (5.5) and (5.18) to obtain the bound E[F^nt1+ε0]{E[F^nt2]}(1+ε0)/2c(1+t)(1+ε0)/2. Use Lemma 5.9 to bound the second moment of n1/2emaxn by c(1+t). By Minkowski’s inequality and the inequality (a+b)1+ε04a1+ε0+4b1+ε0, which holds for a,b0,ε0(0,1), this yields
E[(W^tn)1+ε0]c(1+t)(1+ε0)/2+cE[𝟙{W^tn>K}I^1n[τ2,t]1+ε0].

Hence, it suffices to bound the last term above by a polynomial in t.

To this end, let τ3=inf{sτ2:X^1n(s)Θ^n}t. Then,

E[𝟙{W^tn>K}I^1n[τ2,t]1+ε0]4Δ1n+4Δ2n,whereΔ1n=E[𝟙{W^tn>K}I^1n[τ2,τ3]1+ε0]Δ2n=E[𝟙{W^tn>K,τ3<t}I^1n[τ3,t]1+ε0].

To bound Δ1n, consider the event {W^tn>K,τ3>τ2}. On it, during the interval [τ2,τ3], one has X^1n<Θ^n; hence, by the rules of T2, server 2 prioritizes class 2, except possibly it completes a service that started when X^1nΘ^n. Moreover, W^nK during the same interval, by which we know that there are multiple class-2 jobs in the system, and, thus, server 2 gives no service to class 1, with the only exception of service to a job that started when X^1nΘ^n. Hence, the departure process associated with activity (1, 2) increases by at most one during this interval that is, 0D12n[τ2,τ3]1. Recalling the definition of S^n in (5.1), this can be expressed as 0e1n[τ2,s]n1/2,s[τ2,τ3], where

e1n(s)n1/2D12n(s)=S^12n(T12n(s))+n1/2μ12nT12n(s).

Using this in (5.4) gives, for s[τ2,τ3],

X^1n(s)=X^1n(τ2)+f^1n[τ2,s]e1n[τ2,s]+n1/2λ1(sτ2)n1/2μ11T11n[τ2,s],
where
f^1n(s)=A^1n(s)S^11n(T11n(s))+(λ^1nsμ^11nT11n(s)).

Next, by (2.4),

T11n[τ2,s]=(sτ2)I1n[τ2,s]T21n[τ2,s].

However, activity (2, 1) is not in use by T2. Denoting c1=λ1μ11 and g(s)=c1s, this yields

X^1n(s)=X^1n(τ2)+f^1n[τ2,s]e1n[τ2,s]+n1/2g[τ2,s]+μ11I^1n[τ2,s],s[τ2,τ3].(A.3)

Because T2 is used after the update of modes, it must be true that c1=λ1μ11>0.

We use the following property of the Skorohod map. Let η=Γ2[ψ]. Then, by (5.7), η(s)=sup0θs[ψ(θ)]. Assume that ψ=ψ1+ψ2 where ψ20. Then,

η(s)=Γ2[ψ1+ψ2](s)=supθ[0,s][(ψ1(θ)+ψ2(θ))]supθ[0,s][ψ1(θ)]ψ1s.

This property is used as follows. On the interval [τ2,τ3], I^1n can increase only at times when X^1n=0; and the latter process is nonnegative. This shows that μ11I^1n serves as the Skorohod term in (A.3) on that interval, and, thus, by the non-negativity of X^1n(τ2) and c1, and the bound |e1n[τ2,s]|n1/2, this shows that

μ11I^1n[τ2,τ3]supθ[τ2,τ3]|f^1n[τ2,θ]|+supθ[τ2,τ3]|e1n[τ2,θ]|2f^1nt+n1/2.

Hence, Δ1nc{E[f^1nt2]}(1+ε0)/2+1c(1+t).

Next, we bound Δ2n. To this end, consider the event Ωn{W^tn>K,τ3<t,I^1n(t)>I^1n(τ3)}. Because by its definition, I^1n(t)n1/2t, we have

Δ2nP(Ωn)(n1/2t)1+ε0.

On the event Ωn, let

τ5=inf{s>τ3:X^1n(s)=0},τ4=sup{s<τ5:X^1n(s)Θ^n}.

Then, on Ωn, it must hold that τ3τ4<τ5t. The arguments that led to (A.3) are valid for the time interval [τ4,τ5]. As a result,

X^1n[τ4,τ5]=f^1n[τ4,τ5]e1n[τ4,τ5]+n1/2g[τ4,τ5]+μ11I^1n[τ4,τ5],
with |e1n[τ4,s]|n1/2 for all s[τ4,τ5]. Now, I^1n remains flat on the interval [τ4,τ5], and, moreover, X^1n(τ4)=Θ^nn1/2 and X^1n(τ5)=0. This gives
f^1n[τ4,τ5]+n1/2g[τ4,τ5]Θ^n+2n1/2.

Given any δ>0, using the nonnegativity of the second term on the LHS, in the case that τ5τ4nδ, one must have f^1n[τ4,τ5]Θ^n/2. On the other hand, in the case τ5τ4>nδ, one must have f^1n[τ4,τ5]+c1n1/2nδ<0. As a result,

P(Ωn)p1n+p2nP(wt(f^1n,nδ)Θ^n/2)+P(2f^1nt>c1n12δ).

We have by (2.32) Θ^n=n12na¯, where we recall that a¯<12. Thus, by Lemma 5.7, with ν1=δ,ν2=12a¯, one has, for any ε1>0,

p1nc(1+t)m2nh0+ε1,
where
h0=(m21)δm(12a¯),δ1a¯.

Next, by (5.18) and Chebychev’s inequality,

p2nc(1+t)m2nm2+δm.

As a result, we have

Δ2nc(nζ1(δ,ε0,ε1)+nζ2(δ,ε0))(1+t)m2+1+ε0,
where
ζ1(δ,ε0,ε1)=(m21)δ+m(12a¯)+12+ε02+ε1,ζ2(δ,ε0)=m2+δm+12+ε02.

By our assumptions, we have m>m0=12(5+17) and a¯>12m25m+22m(3m2). Using this, a calculation shows that with the choice δ=m/(3m2)(1/3,1/2), one has ζ1(δ,0,0)ζ2(δ,0)<0. It follows that there exist ε0>0 and ε1>0 for which ζ1(δ,ε0,ε1)ζ2(δ,ε0)<0. Therefore, Δ2nc(1+t)m2+1+ε0 and the proof is complete. □

Proof of Lemma 5.10

(Continued from Section 5.2.3). The proof of the lemma in case 1(a) appears in Section 5.2.3; here, we cover the remaining cases.

  • Case 1(b): In this case, we use the T2 policy, which is single mode. Between σ and τ, X^pn(t)Θ^n. Thus, both servers give priority to the HPC at all time in [σ,τ]. It is possible that the dual-activity server is occupied with the low-priority class at σ, but as soon as the current job is served, the high-priority class gets priority on one server and dedication by the other server. By definition of emaxn, we have for any k{1,2},

    στΞpkn(t)dtτσemaxn𝟙k=k2(ξA).

    Thus,

    στ(λpkμpkΞpkn(t))dt(τσ)(λpkμpk)+μpk2(ξA)emaxn.

    Finally, λpkμpk<0 by (3.1) and miniλi>0.

  • Case 2(a): In this case, we use the PP policy, which only changes mode at the completion of a service at the single-activity server. This is precisely the server that gives priority to the high-priority class after switching mode because we are in an SS case. Because there are always HPC jobs to serve between σ and τ, we claim that excluding an initial period, at any given time the HPC is being served by at least one server, as discussed in Section 5.1.3. We now discuss how long this initial period can be.

    The only way some service is lost is if there were no high-priority jobs at some point in the system, both servers become busy with low-priority jobs, and σ occurs before the service completion of those jobs. After completion of those two jobs, the HPC keeps priority on at least one server, regardless of switching of the current mode. For the initial jobs, with respect to MODEn(σ), either the service ends first at the dual-activity server or the service ends first at the single-activity server.

    In the first case, a service of the HPC job starts at the dual-activity server because it has priority there until either τ is reached or a mode switch occurs. In the second case, the available server is currently dedicated to the LPC. Because this corresponds to a service completion at the single-activity server, the workload is sampled, and there could also be a switching of modes. If the mode changes, then this server becomes dual activity, and the HPC has priority there. If there is no mode switch, the service of another LPC job starts. LPC jobs are served at this server until the mode switches.

    Thus, if the service ends at the dual-activity server before the mode switches, then an HPC job will start there. If the mode switches before the service ends at the current dual-activity server, then the current single-activity server becomes dual activity and an HPC job begins service there.

    In either case, the HPC is served by at least one server after that time because it has priority on the dual-activity server, and the dual-activity server is always available when switching modes. In addition, the time it takes for the HPC to begin service is smaller than the service of the job present at the dual-activity server at time σ, which is smaller than emaxn. Hence,

    στ(μp1Ξp1n(t)+μp2Ξp2n(t))dtminkμpk(τσ)maxkμpkemaxn.

    This yields

    στ(λpkμpkΞpkn(t))dt(τσ)(λpminkμpk)+maxkμpkemaxn.

    In addition, λpminkμpk<0. Putting ξL in canonical form forces in this case λ1α1>β1 and p = 2 because i1(ξL)=p. In addition, by (3.6), either λ1α1>β1β2 or λ2α2>β1β2. Thus, λ1α1>maxkβk, which implies λ2α2<minkβk by (3.1).

  • Case 2(b): In this case, we use the T2T2 policy. Because the number of HPC jobs stays above Θn throughout the period [σ,τ], both servers only take new jobs from the HPC, regardless of the mode. Similarly to 1(b), there is at most one job served at either activity before the HPC gets served. Hence, for any k{1,2},

    στΞpkn(t)dtτσemaxn.

    Thus,

    στ(λpkμpkΞpkn(t))dt(τσ)(λpkμpk)+kμpkemaxn.

    We obtain the result similarly as before because λpkμpk<0.

  • Cases 2(c) and 2(d): The HPC is single activity in one mode and dual activity in the other. Recall that this case is CS. This means the dual activity server stays the same, regardless of switching modes. When a T1 rule is applied, the dual-activity server prioritizes the single-activity class as long as there are more than Θn jobs of this class. The HPC is single activity when we apply the T1 rule. Similarly, under a T2 rule, the dual-activity server prioritizes the dual-activity class as long as there are more than Θn jobs of this class and the HPC is dual activity when we apply the T2 rule. Once again, put ξL in canonical form, server 2 is the dual-activity server in both modes. Regardless of which rule is used, as long as the number of HPC jobs is above Θn, server 2 only takes new jobs from the HPC. As before, we have to exclude a residual service of a low-priority job that started before σ. Hence,

    στΞp2n(t)dtτσemaxn.

It remains to show that the activity processing HPC jobs throughout the period is enough to deplete them. Because of the canonical form of ξL, λ1α1>β1 and, thus, by (3.5), λ1α1<β2. Moreover, λ2α2<β2 by (3.1). Whichever the HPC is, server 2 has enough capacity to deplete it. In other words, λpμp2<0 and

στ(λpkμpkΞpkn(t))dt(τσ)(λpμp2)+μp2emaxn.

Proof of Lemma 5.12.

The proof follows reasoning similar to the proof of Proposition 5.4. Fix δ. Let us introduce

σrn=sup{tτrn:X^pn(t)Θ^n, or X^qn(t)Θ^n2}.

In cases 2(b), (c), and (d), introduce

τ˜n=inf{t0:X^qn(t)z*αq2},σ˜n=sup{tτ˜n:X^qn(t)z*αq4}.

To simplify, we write throughout this proof

ρn=ρ, τrn=τ, τ˜n=τ˜, σ˜n=σ˜ and σrn=σ.

We briefly describe the interaction between the times we just introduced. Under the state-space collapse, τ˜ has to occur before the first time the current mode switches. The times σ and σ˜ allow us to have some knowledge about the state of queue lengths, uniformly over an interval. The first step of the proof of (5.26) is establishing that

P(τcnt0,τ˜ρ)0,(A.4)
holds in cases 2(b), (c), and (d). In those cases, under the event {τcnt0}{τ˜ρ}, for any tρ,
MODEn(t)=MODEn(0)=ξL.(A.5)

In addition, in case 1(b), for any tρ

MODEn(t)=ξA,(A.6)
which means (A.4) is not needed in this case.

We now proceed with the proof of (A.4). On {τcnt0,τ˜ρ}, the following hold:

  • (i) The number of HPC job is below Θ^n, and there are LPC jobs in the system during [σ˜,τ˜]:

    supt[σ˜,τ˜]X^pn(t)<Θ^n and inft[σ˜,τ˜]X^qn(t)>0.

  • (ii) The current mode is the same as in the initial state: for any t[σ˜,τ˜],

    MODEn(t)=MODEn(0)=ξL.

  • (iii) In addition, the number of LPC jobs must have grown during that time:

    X^qn(τ˜)X^qn(σ˜)z*αq4.

(i) comes from the definition of ρ, σ˜ and τ˜. (ii) comes from the fact that the number of HPC jobs is bounded by 2Θn under {τcnt0} and the number of LPC jobs is bounded by z*αq2 before τ˜ and the workload cannot cross above z*. (iii) comes from the definition of τ˜ and σ˜. Because of (ii), only the rule in the lower-workload mode is in use. When using a T1 rule, both servers take new jobs from the LPC because of (i), and λqkμqk<0. When using a T2 rule, again because of (i), the dual-activity server takes new jobs from the LPC. Because ξL is in canonical form λ1α1>β1,k2(ξL)=2 and q = 2 because of the T2 rule. This means that λ2α2<β2 and, thus, λqμqk2(ξL)<0. Hence, with (5.19), regardless of the case there exists c > 0 such that

X^qn(τ˜)X^qn(σ˜)+f^qn[σ˜,τ˜]cn(τ˜σ˜)+kμqkemaxn.

From this, we obtain two bounds:

X^qn(τ˜)X^qn(σ˜)wt0(f^qn,τ˜σ˜)cn(τ˜σ˜)+kμqkemaxnX^qn(τ˜)X^qn(σ˜)2f^qnt0cn(τ˜σ˜)+kμqkemaxn.

We now prove (A.4): let rn=log(n+1)n. Because of (iii),

P(τcnt0,τ˜ρ)P(τ˜ρ,f^qn[σ˜,τ˜]cn(τ˜σ˜)+kμqkemaxnz*αq4)P(wt0(f^qn,τ˜σ˜)cn(τ˜σ˜)+kμqkemaxnz*αq4,τ˜σ˜rn)+P(2f^qnt0cn(τ˜σ˜)+kμqkemaxnz*αq4,τ˜σ˜>rn)P(wt0(f^qn,rn)+kμqkemaxnz*αq4)+P(2f^qnt0+kμqkemaxnclog(n+1)).

By Lemma 5.9, emaxn is smaller than na¯1=o(1). By Remark 5.8, f^qn are C-tight and f^qnt0 are tight RVs. Both terms must then converge to zero. This concludes the proof of (A.4) in all relevant cases for this lemma.

  • Case 2(c), T1 rule:

    By splitting the integral that defines R¯n, and using (5.24) and (A.5),

    R¯ρn0ρ𝟙W^tnc3Θ^n,τcnt0,τ˜ρdL^tn+0ρ𝟙τcn<t0+𝟙τ˜ρ,τcnt0dL^tn0ρ𝟙X^qn(t)Θ^n,MODEn(t)=ξLdL^tn+0ρ𝟙τcn<t0+𝟙τ˜ρ,τcnt0dL^tn.

    The first term is zero by definition of the T1 rule because q is the dual-activity class. The second term goes to zero by Proposition 5.4 and (A.4). This concludes the proof of (5.26) in case 2(c).

  • Case 1(b), 2(b), and 2(d), T2 rule:

    We now deal with all cases that use a T2 rule in lower workload at the same time thanks to (A.5)/(A.6). Recall that p=1=i2(ξL) and k1(ξL)=1. By splitting the integral, we obtain

    R¯ρn=0ρ𝟙W^tnc3Θ^n,τcnt0dL^tn+0ρ𝟙W^tnc3Θ^n,τcn<t0dL^tn.

    By (5.2), L^n=kβkI^kn. By definition of the T2 rule, as long as there are at least two customers in the system, the dual-activity server cannot idle. With ξL in canonical form, server 2 is the dual-activity server, so under the event {τcnt0}{τ˜ρ},

    0ρ𝟙W^tn2(α1α2)1n1/2,τcnt0,τ˜ρdI^2n(t)=0.

    Because 0ρ𝟙W^tnc3Θ^n,τcn<t0dL^tn0 by Proposition 5.4, we are left to deal with

    0ρ𝟙W^tnc3Θ^n,τcnt0,τ˜ρdL^tn=β10ρ𝟙W^tnc3Θ^n,τcnt0,τ˜ρdI^1n(t).

    We introduce the following times:

    τ¯n=inf{t0:0t𝟙W^tnc3Θ^ndL^tnδ2},
    and
    σ¯n=sup{tτ¯n:X^2n(t)=0}.

    We want to show that

    P(ρτ¯)0.

    On the event {ρτ¯}, we have:

    • • First, by definition of σ¯,

      inft(σ¯,τ¯)X^2n(t)>0.

    • • Second, by definition of ρ,

      supt[0,τ¯]X^1n(t)<Θ^n.

    • • Finally, by definition of σ¯,

      X^2n(σ¯)n1/2.

    In order for server 1 to be idle at time τ¯ (so that dI^1n(τ¯)>0), it is necessary that X^1n(τ¯)=0. This means that in order to also have W^τ¯nc3Θ^n, we need to have X^2n(τ¯)2Θ^n, or

    X^2n(τ¯)X^2n(σ¯)2Θ^nn1/2Θ^n.(A.7)

We can now give the balance equation for X^2n between σ¯ and τ¯ under the T2 rule. Under the T2 rule, server 2 prioritizes class 2 for the whole period because the number of HPC jobs remains below Θ^n. Because λ1>μ11 we obtain λ2<μ22 from (3.1). By the same reasoning as (A.3), there exists c2>0 such that

X^2n[σ¯,τ¯]f^2n[σ¯,τ¯]c2n(τ¯σ¯)+nemaxnkμ2k.(A.8)

Combining (A.7) and (A.8), we obtain (on {ρτ¯})

f^2n[σ¯,τ¯]c2n(τ¯σ¯)+nemaxnkμ2kΘ^n.

As in the proof of Proposition 5.4, we distinguish between two cases: τ¯σ¯ smaller or larger than nν1. On τ¯σ¯nν1, f^2n[σ¯,τ¯]wt0(f^2n,nν1), so that

P(f^2n[σ¯,τ¯]c2n(τ¯σ¯)+nemaxnkμ2kΘ^n,τ¯σ¯nν1)P(wt0(f^2n,nν1)Θ^n/2)+P(nemaxnkμ2kΘ^n/2).

On τ¯σ¯>nν1,f^2n[σ¯,τ¯]2f^2nt0 and c2n(τ¯σ¯)c2n12ν1, so that

P(f^2n[σ¯,τ¯]c2n(τ¯σ¯)+nemaxnkμ2kΘ^n,τ¯σ¯>nν1)P(2f^2nt0c2n12ν1/2)+P(nemaxnkμ2kc2n12ν1/2).

To summarize,

P(ρτ¯)P(τcnt0)+P(τcnt0,τ˜<ρ)+P(τcnt0,τ˜ρ,τ¯ρ,τ¯σ¯nν1)+P(τcnt0,τ˜ρ,τ¯ρ,τ¯σ¯>nν1)P(τcnt0)+P(τcnt0,τ˜<ρ)+P(wt0(f^2n,nν1)Θ^n/2)+P(nemaxnkμ2kΘ^n/2)+P(2f^2nt0c2n12ν1/2)+P(nemaxnkμ2kc2n12ν1/2).

All terms converge to zero. The first two have already been treated in Proposition 5.4 and (A.4), respectively. The third term converges by Lemma 5.7, the fourth and sixth by Lemma 5.9, and the fifth by tightness of f^2n.

This completes the proof of (5.26) and Lemma 5.12 in all of the relevant cases. □

Proof of Lemma 5.13.

  • Case 1(b), T2 policy:

    We begin the proof by a full analysis in the case where a T2 policy is used and then explain how to deal with the other cases. In this case, with the active mode in canonical form, p = 1. Recall the definition of the random time τ:

    τ=inf{t>ρ:X^1n(t)=2n1/2, and X^2n(t)Θ^n},
    and
    σ=sup{tτn:X^1n(t)Θ^n, or X^2n(t)Θ^n2}.

    For any t[σ,τ],

    • X^1n(t)<Θ^n,

    • • and X^2n(t)>Θ^n2.

    In this case, only server 1 processes class 1 jobs and does so at most at full rate. Indeed, only server 1 gives priority to class 1 jobs, and the other server is busy with class 2 jobs present in the system. Similarly, only server 2 processes class 2 jobs and does so at full rate because there are always class 2 jobs and the number of HPC jobs is below Θn between σ and τ. Similarly to Lemma 5.10, emaxn is such that for any s,t[σ,τ],st, including a service that could start before σ at the wrong activity (server 2 in this case),

    st(λ1kμ1kΞ1kn(s))ds(λ1μ11)(ts)μ12emaxn,
    and excluding a service of a HPC job by server 2 starting before σ,
    st(λ2kμ2kΞ2kn(s))ds(λ2μ22)(ts)+μ22emaxn.

    With the active mode in canonical form, we have λ1>μ11. By (3.1), this means λ2<μ22. Thus, λ1μ11>0 and λ2μ22<0.

    There are two possibilities for the state of the system at time σ: we have either

    • X^1n(σ)=Θ^nn1/2,

    • or X^2n(σ)[Θ^n2+12n1/2,Θ^n2+n1/2].

    We will decompose the event Ωn{τt0} in two events:

    Ωn=Ω1nΩ2n,
    with
    Ω1nΩn{X^1n(σ)=Θ^nn1/2},
    and
    Ω2nΩn{X^2n(σ)[Θ^n2+12n1/2,Θ^n2+n1/2]}.

    To lighten notation, introduce also

    Ω˜n{τt0,supt[σ,τ]X^1n(t)<Θ^n,inft[σ,τ]X^2n(t)>Θ^n2}.

    Similarly to Proposition 5.4, let ν2=1/2a¯1/4 and ν1(ν2,1/2) so that Θ^n=n1/2n1/2ν2nν2. Then,

    P(Ω1n)=P(X^1n(σ)=Θ^nn1/2,X^1n(τ)2n1/2,Ω˜n)P(X^1n(τ)X^1n(σ)Θ^n2,Ω˜n)=P(X^1n(τ)X^1n(σ)Θ^n2,Ω˜n,τσnν1)+P(X^1n(τ)X^1n(σ)Θ^n2,Ω˜n,τσ>nν1).

    On Ω˜n, we also have

    X^1n(τ)X^1n(σ)=f^1n(τ)f^1n(σ)+nστ(λ1kμ1kΞ1kn(t))dtf^1n(τ)f^1n(σ)+(λ1μ11)n(τσ)μ12emaxnn.

    On the event {Ω˜n,τσ>nν1}, the reasoning is very similar to the proof of Proposition 5.4:

    P(X^1n(τ)X^1n(σ)Θ^n2,Ω˜n,τσ>nν1)
    P(2 suptt0|f^1n(t)|+μ12nemaxn(λ1μ11)nnν1/2).(A.9)

    The last probability goes to zero by tightness of f^1n,ν1<1/2 and Lemma 5.9. When τσnν1 the situation is again the same as in the proof of Proposition 5.4:

    P(X^1n(τ)X^1n(σ)Θ^n2,Ω˜n,τσnν1)P(wt0(f^1n,nν1)+μ12emaxnnnν22).(A.10)

    The right-hand side also converges to zero by Lemma 5.7, Remark 5.8, and Lemma 5.9, similarly to the proof of Proposition 5.4.

    The second event Ω2n is treated similarly:

    P(Ω2n)P(X^2n(σ)[Θ^n2+12n1/2,Θ^n2+n1/2],X^2n(τ)Θ^n,Ω˜n)P(X^2n(τ)X^2n(σ)Θ^n3,Ω˜n)=P(X^2n(τ)X^2n(σ)Θ^n3,Ω˜n,τσnν1)+P(X^2n(τ)X^2n(σ)Θ^n3,Ω˜n,τσ>nν1).

    On this event, we also have

    X^2n(τ)X^2n(σ)=f^2n(τ)f^2n(σ)+nστ(λ2kμ2kΞ2kn(t))dtf^2n(τ)f^2n(σ)+(λ2μ22)n(τσ)+μ22emaxnn.

    On the event {τσ>nν1}, similar to the treatment of Ω1n:

    P(X^2n(τ)X^2n(σ)Θ^n3,Ω˜n,τσ>nν1)P(2 suptt0|f^2n(t)|+μ22nemaxn(λ2μ22)nnν1/3).(A.11)

    The last probability goes to zero by tightness of f^2n,ν1<1/2 and Lemma 5.9. When τσnν1, the situation is also the same as for Ω1n:

    P(X^2n(τ)X^2n(σ)Θ^n3,Ω˜n,τσnν1)P(wt0(f^2n,nν1)+μ22emaxnnnν23).(A.12)

    The right-hand side also converges to zero by Lemma 5.7, similarly to the Ω1n case. This concludes the proof in case 1(b). We now present the changes required to adapt the proof to the other cases described in the lemma:

  • Case 2(b), T2 T2 policy:

    This case involves switching between two T2 rules: i2(ξL)=i2(ξH)=p. Because ξL is in canonical form, p = 1. In this case, mode switching only occurs at a service completion at the single-activity server that is dedicated to HPC jobs. There could be either type of job being served at either server immediately before time σ. We will see that after those jobs exit the system, there is at least one server processing the LPC and at most one processing the HPC. If the first job to finish is from the dual-activity server, the service of a low-priority job starts because there are fewer than Θn HPC jobs. This server will continue to take LPC jobs until the minimum between the next mode switching time and τ. If the first job to finish at or after σ is at the single-activity server, either the current mode switches or the service of an HPC job starts. If there is no mode switch, then this server will continue to take HPC jobs until the minimum between the next mode switching time and τ. When the dual-activity server completes its job, it will, as noted before, serve LPC jobs. If there is a mode switch, then the formerly single-activity server becomes dual activity, and (because there are fewer than Θn HPC jobs) begins service on an LPC job. When the formerly dual-activity server completes its job, it becomes single activity and serves HPC. This continues until the minimum between the next mode switching time and τ.

    After the two jobs present at σ, there cannot be a time where both servers are occupied with HPC jobs. This is because the HPC is only processed by the server dedicated to it, and there can be no residual service of an HPC job at the single activity server whenever the current mode switches. Similarly, after both initial jobs have been processed, there is always at least one server occupied with LPC jobs. This is because one server gives priority to the LPC, and the service of a LPC job starts whenever the current mode switches.

    Keeping the definition of τ, σ, just as in the single-mode case, for any t,s[σ,τ], including/excluding a service that could start before σ at the wrong activity, there is always at most one server processing HPC jobs and at least one server processing LPC jobs between σ and τ. Thus,

    st(λ1kμ1kΞ1kn(s))ds(λ1maxkμ1k)(ts)kμ1kemaxn,
    and
    st(λ2kμ2kΞ2kn(s))ds(λ2minkμ2k)(ts)+kμ2kemaxn.

    With one mode in canonical form we have λ1α1>β1. In addition, by Lemma 3.3, in case 2(b), (3.6) holds, and, thus, λ1α1>maxkβk, which also means λ2α2<minkβk by (3.1).

    The rest of the proof is the same as in the single-mode case, obtaining (A.9), (A.10), (A.11), and (A.12). This concludes the proof in case 2(b).

  • Case 2(c), T1T2 policy:

    With ξL in canonical form, we have p = 2, so τ and σ are defined as

    τ=inf{t>ρ:X^2n(t)=2n1/2, and X^1n(t)Θ^n},
    and
    σ=sup{tτn:X^2n(t)Θ^n, or X^1n(t)Θ^n2}.

    In this case, in the upper-workload mode, only the single-activity server is allowed to begin service of the HPC between σ and τ, whereas in the lower-workload mode, neither server can begin service of HPC between σ and τ. Between those times, there are always low-priority class jobs to serve, and the number of HPC jobs stays below Θn. The most service the HPC can get between σ and τ occurs if there are no switches and the current mode is always upper workload. In this mode, the single-activity server (server 1) is dedicated to service of the HPC. Hence, including a service that could start before σ at the wrong activity,

    st(λ2kμ2kΞ2kn(s))ds(λ2μ21)(ts)μ21emaxn.

    Between σ and τ, server 2 gives priority to class 1 regardless of switches. Excluding a service of a HPC job that could have started before σ,

    st(λ1kμ1kΞ1kn(s))ds(λ1μ12)(ts)μ12emaxn.

    Because we have one mode in canonical form, λ1α1>β1. In addition, by Lemma 3.3 in case 2(c), (3.5) holds, which means that λ1α1<β2. Finally, λ2α2>β1 by the previous observation and (3.1).

    The rest of the proof is the same as in the single-mode case, obtaining (A.9), (A.10), (A.11), and (A.12).

  • Case 2(d), T2 T1 policy:

    This case is handled the same way as 2(c), by interchanging the roles of upper workload and lower workload mode. □

Proof of Lemma 5.11

(Continued from Section 5.2.5).

  • Case 1(b), T2 policy:

    In this case, we already know by Lemma 5.12 that P(R¯ρnδ2)0. We need to show the same thing for the time after ρ:

    P(ρt0𝟙W^tnc3Θ^ndL^tnδ2)0.

    First, by putting ξA in canonical form, p = 1. When X1n(t) is above the threshold, both servers can serve class 1 jobs (high-priority class), so almost surely,

    ρt0𝟙X^1n(t)Θ^ndL^tn=0.(A.13)

    Similarly,

    ρt0𝟙X^2n(t)2n1/2dI^2n(t)=0,(A.14)
    and
    ρt0𝟙2n1/2X^1n(t)Θ^ndI^1n(t)=0.(A.15)

    Notice now that because of the three identities,

    P(ρt0𝟙Wtnc3ΘndL^tnδ2)P(ρt0(𝟙X^1n(t)Θ^n+𝟙X^1n(t)Θ^n,X^2nΘ^n)dL^tnδ2)=P(β1ρt0𝟙X^1n(t)Θ^n,X^2nΘ^ndI^1n(t)δ2)=P(β1ρt0𝟙X^1n(t)2n1/2,X^2nΘ^ndI^1n(t)δ2).
    By Lemma 5.13,
    P(ρt0𝟙X^1n(t)2n1/2,X^2nΘ^ndI^1n(t)δ2)P(τrnt0)0.(A.16)

  • Case 2(a), PP policy:

    In this case, p = 2. The reasoning in case 1(a) is still valid when switching between two P rules because (5.28) and (5.29) still hold.

  • Case 2(b), T2T2 policy:

    The result in this case has a proof very similar to case 1(b) because Lemmas 5.12 and 5.13 are still valid in this case. We already know by Lemma 5.12 that

    P(0ρ𝟙W^tnc3Θ^ndL^tnδ2)0.

    We need to show the same thing for the time after ρ:

    P(ρt0𝟙W^tnc3Θ^ndL^tnδ2)0.

    First, by putting ξL in canonical form p = 1.

    The idea is to split the integrals between the times MODE(t)=ξL and the times MODE(t)=ξH. In this case, we still have (A.13), but this time (A.14) and (A.15) only hold when MODE(t)=ξL. In the other case, we have

    ρt0𝟙X^2n(t)2n1/2,MODE(t)=ξHdI^1n(t)=0,ρt0𝟙2n1/2X^1n(t)Θ^n,MODE(t)=ξHdI^2n(t)=0.

    We obtain

    ρt0𝟙MODE(t)=ξL,Wtnc3ΘndL^tnβ1ρt0𝟙MODE(t)=ξL,X^1n(t)2n1/2,X^2n(t)Θ^ndI^1n(t),
    and
    ρt0𝟙MODE(t)=ξH,Wtnc3ΘndL^tnβ2ρt0𝟙MODE(t)=ξH,X^1n(t)2n1/2,X^2n(t)Θ^ndI^2n(t).

    Finally, we obtain the result, because

    P(ρt0𝟙X^1n(t)2n1/2,X^2n(t)Θ^ndL^tnδ2)P(τrnt0)0.

  • Case 2(c)(d), T1T2/T2T1 policy:

    We give the proof in case 2(d), but the reasoning is similar in case 2(c) by interchanging the role of ξL and ξH. In this case, p = 1 with ξL in canonical form. The idea is similar to the 2(b) case. We already know by Lemma 5.12 that

    P(0ρ𝟙W^tnc3Θ^ndL^tnδ2)0.

    We need to show the same thing for the time after ρ:

    P(ρt0𝟙W^tnc3Θ^ndL^tnδ2)0.

    We will split the integral using 𝟙MODE(t)=ξL+𝟙MODE(t)=ξH. We use a T2 rule when Wn is small and a T1 rule when Wn is large, but that distinction is not important here. In terms of almost sure nonidling properties, we have

    ρt0𝟙MODE(t)=ξL,X^1n(t)Θ^ndL^tn=0,ρt0𝟙MODE(t)=ξL,X^2n(t)2n1/2dI^2n(t)(t)=0,ρt0𝟙MODE(t)=ξL,2n1/2X^1n(t)Θ^ndI^1n(t)=0,ρt0𝟙MODE(t)=ξH,X^2n2n1/2dL^tn=0.

    From these almost sure identities, we obtain

    P(ρt0𝟙Wtnc3ΘndL^tnδ2)P(ρt0𝟙MODE(t)=ξL,Wtnc3ΘndL^tnδ4)+P(ρt0𝟙MODE(t)=ξH,Wtnc3ΘndL^tnδ4)P(β1ρt0𝟙MODE(t)=ξL,X^1n(t)2n1/2,X^2n(t)Θ^ndI^1n(t)δ4)+P(ρt0𝟙MODE(t)=ξH,X^2n(t)2n1/2,X^1n(t)2Θ^ndL^tnδ4)P(τrnt0)+P(τcnt0).

    Both probabilities go to zero (by Lemma 5.13 for the first and Proposition 5.4 for the second), so the result is proved in this case as well.

    As mentioned, the proof is the same in case 2(c): this time, the policy uses a T1 rule when Wn is small and T2 rule when Wn is large. Keeping ξL in canonical form, p = 2. In addition, in terms of almost sure nonidling properties, we have

    ρt0𝟙MODE(t)=ξH,X^2n(t)Θ^ndL^tn=0,ρt0𝟙MODE(t)=ξH,X^1n(t)2n1/2dI^2n(t)=0,ρt0𝟙MODE(t)=ξH,2n1/2X^2n(t)Θ^ndI^1n(t)=0,ρt0𝟙MODE(t)=ξL,X^1n2n1/2dL^tn=0.

    We can obtain the result using the same decomposition. □

Appendix B. Solution of the HJB Equation and Free Boundary Point

In this appendix, we present the expression found in Sheng (1981, section 3, case 1) for the solution to the HJB equation. (This solution is a slightly corrected version of the solution presented in Sheng 1978, section 5.3.) It includes an equation that uniquely characterizes the free boundary point (or switching point) z* in the dual-mode case. It is assumed in Sheng (1981), without loss of generality, that b1b2. We assume further, for simplicity (and, again, without loss of generality), that if b1 = b2, then σ1σ2. Note that, with these indexing assumptions, m = 2 in whichever of the complementary Conditions (2.20) or (2.21) that holds. Throughout this section, denote the unique classical solution to (2.18)–(2.19) by u(x), xR+, and let x serve as the initial condition for the WCP, which elsewhere in this paper is denoted by z. Let

β=b1+b12+2γσ12σ12,ρ=b2+b22+2γσ22σ22,ν=b1b12+2γσ12σ12.

Theorem B.1

(Sheng 1981, Section 3, Case 1). Under (2.20), u(x)=xγ+b2γ2+1γρeρx, xR+.

Next, consider Condition (2.21). Because b1 and b2 are distinct in this case, we have b1>b2. The Policy (4.1) from Section 4 corresponding to switching at z is given in the present notation by ξ¯z(x)=ξ*,1𝟙xz+ξ*,2𝟙x>z. Let Sz(2) be the admissible control system from Lemma 4.1.2, with a generic switching point z in place of the specific z*. Let the corresponding expression JWCP(x,Sz(2)), which is nothing but the cost associated with the switching policy ξ¯z, be denoted by J(x,ξ¯z). Following is an expression for this cost. For z > 0, let

A(z)=νβ(e(νβ)z+e(νβ)z2)νβ(e(νβ)z+e(νβ)z2)+ρ(eνzeβz)(νeνzβeβz),C(z)=(νβ)(eνzeβz)νβ(e(νβ)z+e(νβ)z2)+ρ(eνzeβz)(νeνzβeβz),D(z)=(βν)ρ(eβzeνz)νβ(e(νβ)z+e(νβ)z2)+ρ(eνzeβz)(νeνzβeβz),F(z)=eνzeβz+(βν)C(z)νeβzβeνz.

(F(·) is not to be confused with the process F defined in the body of the paper). Then, for xz,

J(x,ξ¯z)=xγ+b1[(eνzeβz)+(A(z)1)(eνxeβx)+D(z)(eνzβxeβzνx)]γ2(eνzeβz)+b2[(1A(z))(eνxeβx)D(z)(eνzβxeβzνx)]γ2(eνzeβz)+C(z)(eνxeβx)F(z)(eνzβxeβzνx)γ(eνzeβz),(B.1)
and for xz,
J(x,ξ¯z)=xγ+b1A(z)γ2eρ(xz)+b2γ2(1eρ(xz)A(z))+C(z)γeρ(xz).(B.2)

It is here where the principle of smooth fit is applied. For the cost to be C2 (in x), it must satisfy J(z,ξ¯z)=J(z+,ξ¯z). Using the Expressions (B.1) and (B.2), this condition can be translated to the following equation:

0=(b1b2γ2)[(A(z)1)(ν2eνzβ2eβz)eνzeβzρ2A(z)+(β2ν2)D(z)e(ν+β)zeνzeβz]+1γ[C(z)((ν2eνzβ2eβz)eνzeβzρ2C(z)(β2ν2)F(z)e(ν+β)zeνzeβz].(B.3)

Theorem B.2

(Sheng 1981, Section 3, Case 1). Let (2.21) hold. Then, (B.3) has a unique solution z*(0,). Moreover, u(x)=J(x,ξ¯z*),xR+.

Appendix C. Symmetry Conditions

The following result is related to Remark 4.2.

Lemma C.1.

  1. If either (4.2) or (4.3) holds, then b1 = b2. In particular, (2.20) holds.

  2. If (4.4) holds, then σ1=σ2. In particular, (2.20) holds.

Proof.

  1. Recall the expressions for b1 and b2,

    bm=b(ξ*,m)=iλ^ikμ^ikξik*,mαi.

    The difference between b1 and b2 is thus the difference between γmi,kμ^ikξik*,mαi. For ξ*,1, we distinguish these cases: either λ1α1>β2 or λ1α1<β2. For ξ*,2, we distinguish these cases: either λ1α1<β1 or λ1α1>β1. We will see that in each of the four cases b1 = b2,

    λ1α1>β2:γ1=1α1[μ^12+μ^11(λ1α1β1β2β1)]+μ^21α2(1λ1α1β1+β2β1),λ1α1<β2:γ1=μ^12λ1α12β2+1α2[μ^21+μ^22(1λ1α1β2)],λ1α1<β1:γ2=μ^11λ1α12β1+1α2[μ^22+μ^21(1λ1α1β1)],λ1α1>β1:γ2=1α1[μ^11+μ^12(λ1α1β2β1β2)]+μ^22α2(1λ1α1β2+β1β2).

    We now take the difference for each pair:

    λ1α1>β2λ1α1<β1:b1b2=μ^12μ^11β2β1α1μ^22μ^21β2β1α2,λ1α1>β2λ1α1>β1:b1b2=(1λ1α1β1+β2β1)[1α1(μ^12β1β2μ^11)+1α2(μ^21μ^22β1β2)],λ1α1<β2λ1α1<β1:b1b2=λ1α12[μ^12β2μ^11β1]+λ1α1α2[μ^21β1μ^22β2],λ1α1<β2λ1α1>β1:b1b2=μ^12β1β2μ^11α1+μ^21μ^22β1β2α2.

    Now, if μ^i1β1=μ^i,2β2,i=1,2, we get

    μ^11β2β1μ^12=μ^22μ^21β2β1=0,
    and, consequently, b1 = b2 as claimed. If μ^1kα1=μ^2kα2, k=1,2, it is not hard to see that again the expressions can be rewritten with a different factorization to get b1 = b2.

  2. Under (4.4), denote Ci=CSi1=CSi2. Then, for ξSLP,

    σ(ξ)2=iσA,i2+kσSik2ξikαi2=iσA,i2+kCi2μikξikαi2=iσA,i2+Ci2λiαi2,
    where the last equality follows from (2.7). Hence σ1=σ2 as claimed. □

References

  • Atar R, Lev-Ari A (2018) Workload-dependent dynamic priority for the multiclass queue with reneging. Math. Oper. Res. 43(2):494–515.LinkGoogle Scholar
  • Atar R, Castiel E, Reiman MI (2024) Parallel server systems under an extended heavy traffic condition: A lower bound. Ann. Appl. Probab. 34(1B):1029–1071.Google Scholar
  • Bell SL, Williams RJ (2001) Dynamic scheduling of a system with two parallel servers in heavy traffic with resource pooling: Asymptotic optimality of a threshold policy. Ann. Appl. Probab. 11(3):608–649.Google Scholar
  • Billingsley P (1999) Convergence of Probability Measures, 2nd ed., Wiley Series in Probability and Statistics (Wiley-Interscience, New York).Google Scholar
  • Ethier SN, Kurtz TG (1986) Markov Processes, Characterization and Convergence, Wiley Series in Probability and Mathematical Statistics (John Wiley & Sons Inc., New York).Google Scholar
  • Fleming WH, Soner HM (2006) Controlled Markov Processes and Viscosity Solutions, Stochastic Modelling and Applied Probability, vol. 25 (Springer Science & Business Media, New York).Google Scholar
  • Goldfarb D, Todd MJ (1989) Linear programming. Nemhauser GL, Rinooy Kan AHG, Todd MJ, eds. Optimization, Handbooks in Operations Research and Management Science, vol. 1 (Elsevier Science, Amsterdam), 73–170.Google Scholar
  • Harrison JM (1998) Heavy traffic analysis of a system with parallel servers: Asymptotic optimality of discrete-review policies. Ann. Appl. Probab. 8(3):822–848.Google Scholar
  • Harrison JM, López MJ (1999) Heavy traffic resource pooling in parallel-server systems. Queueing Systems Theory Appl. 33(4):339–368.Google Scholar
  • Krichagina EV, Taksar MI (1992) Diffusion approximation for GI/G/1 controlled queues. Queuing Systems 12:333–368.Google Scholar
  • Krylov NV, Liptser R (2002) On diffusion approximation with discontinuous coefficients. Stochastic Processes Appl. 102(2):235–264.Google Scholar
  • Kurtz TG, Protter P (1991) Weak limit theorems for stochastic integrals and stochastic differential equations. Ann. Probab. 19(3):1035–1070.Google Scholar
  • Liptser RS, Shiriaev AN (1977) Statistics of Random Processes I: General Theory, Stochastic Modelling and Applied Probability, vol. 5 (Springer, New York).Google Scholar
  • Revuz D, Yor M (1999) Continuous Martingales and Brownian Motion, 3rd ed., Grundlehren der Mathematischen Wissenschaften [Fundamental Principles of Mathematical Sciences], vol. 293 (Springer-Verlag, Berlin).Google Scholar
  • Schrijver A (1986) Theory of Linear and Integer Programming, Wiley-Interscience Series in Discrete Mathematics (John Wiley & Sons, Ltd., Chichester, UK).Google Scholar
  • Sheng D (1978) Some problems in the optimal control of diffusions. PhD thesis, Stanford University, Stanford, CA.Google Scholar
  • Sheng D (1981) Two-mode control of reflecting Brownian motion. Working paper, Bell Labs, Holmdel, NJ.Google Scholar
  • Stroock DW, Varadhan SS (2006) Multidimensional Diffusion Processes, Classics Math, vol. 233 (Springer-Verlag, Berlin, Heidelberg), 1–338.Google Scholar