{"title":"在云中租用服务器:等时作业案例","authors":"Mahtab Masoori , Lata Narayanan , Denis Pankratov","doi":"10.1016/j.dam.2024.11.015","DOIUrl":null,"url":null,"abstract":"<div><div>Renting servers in the cloud is a generalization of the bin packing problem, motivated by job allocation to servers in cloud computing applications. Jobs arrive in an online manner, and need to be assigned to servers; their duration and size are known at the time of arrival. There is an infinite supply of identical servers, each having one unit of computational capacity per unit of time. A server can be rented at any time and continues to be rented until all jobs assigned to it finish. The cost of an assignment is the sum of durations of rental periods of all servers. The goal is to assign jobs to servers to minimize the overall cost while satisfying server capacity constraints. We focus on analyzing two natural algorithms, <em>NextFit</em> and <em>FirstFit</em>, for the case of jobs of equal duration. It is known that the competitive ratio of <em>NextFit</em> and <em>FirstFit</em> are at most 3 and 4 respectively for this case. We prove a tight bound of 2 on the competitive ratio of <em>NextFit</em>. For <em>FirstFit</em>, we establish a lower bound of <span><math><mrow><mo>≈</mo><mn>2</mn><mo>.</mo><mn>519</mn></mrow></math></span> on the competitive ratio, even when jobs have only two distinct arrival times 0 and <span><math><mi>t</mi></math></span>. Using the weight function technique, we show that this bound is almost tight when there are only two arrival times; we obtain an upper bound of 2.565 on the asymptotic competitive ratio of <em>FirstFit</em>. In fact, we show an upper bound of <span><math><mrow><mfrac><mrow><mn>168</mn></mrow><mrow><mn>131</mn></mrow></mfrac><mrow><mo>(</mo><mn>1</mn><mo>+</mo><mi>t</mi><mo>)</mo></mrow></mrow></math></span> on the asymptotic competitive ratio for any <span><math><mrow><mi>t</mi><mo>></mo><mn>0</mn><mo>.</mo><mn>559</mn></mrow></math></span>. For the case when jobs have arrival times 0 and 1 and duration 2, we show a lower bound of <span><math><mrow><mo>≈</mo><mn>1</mn><mo>.</mo><mn>89</mn></mrow></math></span> and an upper bound of 2 on the strict competitive ratio of <em>FirstFit</em>. Finally, we show an upper bound of <span><math><mrow><mn>3</mn><mo>/</mo><mn>2</mn></mrow></math></span> on the competitive ratio of long-running uniform servers.</div></div>","PeriodicalId":50573,"journal":{"name":"Discrete Applied Mathematics","volume":"362 ","pages":"Pages 82-99"},"PeriodicalIF":1.0000,"publicationDate":"2024-11-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Renting servers in the cloud: The case of equal duration jobs\",\"authors\":\"Mahtab Masoori , Lata Narayanan , Denis Pankratov\",\"doi\":\"10.1016/j.dam.2024.11.015\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>Renting servers in the cloud is a generalization of the bin packing problem, motivated by job allocation to servers in cloud computing applications. Jobs arrive in an online manner, and need to be assigned to servers; their duration and size are known at the time of arrival. There is an infinite supply of identical servers, each having one unit of computational capacity per unit of time. A server can be rented at any time and continues to be rented until all jobs assigned to it finish. The cost of an assignment is the sum of durations of rental periods of all servers. The goal is to assign jobs to servers to minimize the overall cost while satisfying server capacity constraints. We focus on analyzing two natural algorithms, <em>NextFit</em> and <em>FirstFit</em>, for the case of jobs of equal duration. It is known that the competitive ratio of <em>NextFit</em> and <em>FirstFit</em> are at most 3 and 4 respectively for this case. We prove a tight bound of 2 on the competitive ratio of <em>NextFit</em>. For <em>FirstFit</em>, we establish a lower bound of <span><math><mrow><mo>≈</mo><mn>2</mn><mo>.</mo><mn>519</mn></mrow></math></span> on the competitive ratio, even when jobs have only two distinct arrival times 0 and <span><math><mi>t</mi></math></span>. Using the weight function technique, we show that this bound is almost tight when there are only two arrival times; we obtain an upper bound of 2.565 on the asymptotic competitive ratio of <em>FirstFit</em>. In fact, we show an upper bound of <span><math><mrow><mfrac><mrow><mn>168</mn></mrow><mrow><mn>131</mn></mrow></mfrac><mrow><mo>(</mo><mn>1</mn><mo>+</mo><mi>t</mi><mo>)</mo></mrow></mrow></math></span> on the asymptotic competitive ratio for any <span><math><mrow><mi>t</mi><mo>></mo><mn>0</mn><mo>.</mo><mn>559</mn></mrow></math></span>. For the case when jobs have arrival times 0 and 1 and duration 2, we show a lower bound of <span><math><mrow><mo>≈</mo><mn>1</mn><mo>.</mo><mn>89</mn></mrow></math></span> and an upper bound of 2 on the strict competitive ratio of <em>FirstFit</em>. Finally, we show an upper bound of <span><math><mrow><mn>3</mn><mo>/</mo><mn>2</mn></mrow></math></span> on the competitive ratio of long-running uniform servers.</div></div>\",\"PeriodicalId\":50573,\"journal\":{\"name\":\"Discrete Applied Mathematics\",\"volume\":\"362 \",\"pages\":\"Pages 82-99\"},\"PeriodicalIF\":1.0000,\"publicationDate\":\"2024-11-21\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Discrete Applied Mathematics\",\"FirstCategoryId\":\"100\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0166218X24004852\",\"RegionNum\":3,\"RegionCategory\":\"数学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q3\",\"JCRName\":\"MATHEMATICS, APPLIED\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Discrete Applied Mathematics","FirstCategoryId":"100","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0166218X24004852","RegionNum":3,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"MATHEMATICS, APPLIED","Score":null,"Total":0}
Renting servers in the cloud: The case of equal duration jobs
Renting servers in the cloud is a generalization of the bin packing problem, motivated by job allocation to servers in cloud computing applications. Jobs arrive in an online manner, and need to be assigned to servers; their duration and size are known at the time of arrival. There is an infinite supply of identical servers, each having one unit of computational capacity per unit of time. A server can be rented at any time and continues to be rented until all jobs assigned to it finish. The cost of an assignment is the sum of durations of rental periods of all servers. The goal is to assign jobs to servers to minimize the overall cost while satisfying server capacity constraints. We focus on analyzing two natural algorithms, NextFit and FirstFit, for the case of jobs of equal duration. It is known that the competitive ratio of NextFit and FirstFit are at most 3 and 4 respectively for this case. We prove a tight bound of 2 on the competitive ratio of NextFit. For FirstFit, we establish a lower bound of on the competitive ratio, even when jobs have only two distinct arrival times 0 and . Using the weight function technique, we show that this bound is almost tight when there are only two arrival times; we obtain an upper bound of 2.565 on the asymptotic competitive ratio of FirstFit. In fact, we show an upper bound of on the asymptotic competitive ratio for any . For the case when jobs have arrival times 0 and 1 and duration 2, we show a lower bound of and an upper bound of 2 on the strict competitive ratio of FirstFit. Finally, we show an upper bound of on the competitive ratio of long-running uniform servers.
期刊介绍:
The aim of Discrete Applied Mathematics is to bring together research papers in different areas of algorithmic and applicable discrete mathematics as well as applications of combinatorial mathematics to informatics and various areas of science and technology. Contributions presented to the journal can be research papers, short notes, surveys, and possibly research problems. The "Communications" section will be devoted to the fastest possible publication of recent research results that are checked and recommended for publication by a member of the Editorial Board. The journal will also publish a limited number of book announcements as well as proceedings of conferences. These proceedings will be fully refereed and adhere to the normal standards of the journal.
Potential authors are advised to view the journal and the open calls-for-papers of special issues before submitting their manuscripts. Only high-quality, original work that is within the scope of the journal or the targeted special issue will be considered.