TWI754488B - Electronic device and method of selecting carrier for software container - Google Patents
Electronic device and method of selecting carrier for software container Download PDFInfo
- Publication number
- TWI754488B TWI754488B TW109144027A TW109144027A TWI754488B TW I754488 B TWI754488 B TW I754488B TW 109144027 A TW109144027 A TW 109144027A TW 109144027 A TW109144027 A TW 109144027A TW I754488 B TWI754488 B TW I754488B
- Authority
- TW
- Taiwan
- Prior art keywords
- container
- carrier
- software
- software container
- module
- Prior art date
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
Description
本發明是有關於一種為軟體容器選擇載體的電子裝置和方法。The present invention relates to an electronic device and method for selecting a carrier for a soft container.
為提供用戶穩定且便利之服務,且在資源(例如:實體設備或虛擬設備)有限的情況下,通常會選擇目前使用率較低的載體來安裝軟體容器。然而,若該軟體容器受到載體內的其他軟體影響而導致效能降低,往往需要管理人員再對該軟體容器進行異動,因而浪費了許多時間以及人力成本。此外,軟體容器的轉移流程相當緩慢,且在完成轉移後,管理人員還需確認軟體容器的封裝是否成功、命名名稱和容器版本是否正確。當遇到錯誤的容器封裝時,只能依靠管理人員來進行錯誤分析,且日後維運上,管理人員無法即時地將軟體容器上架或下架,而需再次依靠程式開發人員更改軟體容器的程式碼。據此,企業主不僅需承擔日益增加的人力成本,還需不斷地投入資金再每一台實體設備的升級。In order to provide users with stable and convenient services, and in the case of limited resources (such as physical devices or virtual devices), a carrier that is currently used less frequently is usually selected to install software containers. However, if the performance of the software container is reduced due to the influence of other software in the carrier, it is often necessary for the administrator to make changes to the software container, which wastes a lot of time and labor costs. In addition, the transfer process of the software container is quite slow, and after the transfer is completed, the administrator also needs to confirm whether the packaging of the software container is successful, the naming name and the container version are correct. When encountering the wrong container packaging, the administrator can only rely on the error analysis, and in the future maintenance and operation, the administrator cannot immediately put the software container on or off the shelf, and need to rely on the program developer to change the software container program again. code. Accordingly, business owners not only need to bear the increasing labor costs, but also need to continuously invest funds to upgrade each physical equipment.
本發明提供一種為軟體容器選擇載體的電子裝置和方法,可自動地為軟體容器選擇適當的載體。The present invention provides an electronic device and method for selecting a carrier for a soft container, which can automatically select an appropriate carrier for the soft container.
本發明的一種為軟體容器選擇載體的電子裝置,包含處理器、儲存媒體以及收發器。儲存媒體儲存多個模組。處理器耦接儲存媒體以及收發器,並且存取和執行多個模組,其中多個模組包含容器上架模組、容器編譯模組、容器分類模組、容器驗證模組、穩定容器載體比對模組以及容器確認模組。容器上架模組通過收發器接收至少一檔案以及編譯檔。容器編譯模組包含容器暫存區,其中容器編譯模組根據編譯檔將至少一檔案封裝為軟體容器,根據編譯檔產生軟體容器的至少一標籤,並且將軟體容器儲存於容器暫存區。容器分類模組根據容器類型對應表以及至少一標籤對軟體容器進行分類以產生特徵表格,並且根據容器介接對應表決定軟體容器的存放位址。容器驗證模組通過收發器接收測試腳本,並且根據測試腳本測試軟體容器以產生測試結果。穩定容器載體比對模組通過收發器接收分別對應於多個載體的多個載體資訊,根據多個載體資訊計算分別對應於多個載體的多個權重值,根據多個權重值從多個載體中選擇載體,並且將軟體容器安裝於載體的存放位址。容器確認模組通過收發器傳送測試結果以及對應於載體的載體資訊。An electronic device for selecting a carrier for a software container of the present invention includes a processor, a storage medium and a transceiver. The storage medium stores multiple modules. The processor is coupled to the storage medium and the transceiver, and accesses and executes a plurality of modules, wherein the plurality of modules include a container listing module, a container compilation module, a container classification module, a container verification module, and a stable container carrier ratio. Check the module for the module and container. The container racking module receives at least one file and a compiled file through the transceiver. The container compilation module includes a container temporary storage area, wherein the container compilation module encapsulates at least one file as a software container according to the compilation file, generates at least one label of the software container according to the compilation file, and stores the software container in the container temporary storage area. The container classification module classifies the software container according to the container type correspondence table and at least one label to generate a feature table, and determines the storage address of the software container according to the container interface correspondence table. The container verification module receives the test script through the transceiver, and tests the software container according to the test script to generate test results. The stable container carrier comparison module receives a plurality of carrier information corresponding to the plurality of carriers through the transceiver, calculates a plurality of weight values corresponding to the plurality of carriers according to the Select the carrier in the , and install the software container in the storage location of the carrier. The container verification module transmits the test result and the carrier information corresponding to the carrier through the transceiver.
在本發明的一實施例中,上述的多個載體資訊包含對應於載體的第一載體資訊,並且多個權重值包含對應於載體的第一權重值,其中穩定容器載體比對模組根據第一載體資訊計算第一權重值,並且響應於第一權重值為多個權重值中的最大者而選擇載體。In an embodiment of the present invention, the above-mentioned plurality of carrier information includes first carrier information corresponding to the carrier, and the plurality of weight values includes a first weight value corresponding to the carrier, wherein the stable container carrier comparison module is based on the first weight value. A carrier information calculates a first weight value, and selects a carrier in response to the first weight value being the largest of the plurality of weight values.
在本發明的一實施例中,上述的第一載體資訊包含對應於載體的異常發生次數以及對應於載體所在區域的至少一載體的平均異常發生次數,其中穩定容器載體比對模組將個別預設分數減去異常發生次數的第一函數以計算穩定趨勢參考值,並且將平均預設分數減去平均異常發生次數的第二函數以計算平均穩定趨勢參考值,其中穩定容器載體比對模組根據穩定趨勢參考值以及平均穩定趨勢參考值計算第一權重值。In an embodiment of the present invention, the above-mentioned first carrier information includes the number of abnormal occurrences corresponding to the carrier and the average number of abnormal occurrences corresponding to at least one carrier in the region where the carrier is located. A first function of subtracting the number of abnormal occurrences from the score is set to calculate a stable trend reference value, and a second function of subtracting the average number of abnormal occurrences from the average preset score is used to calculate the average stable trend reference value, wherein the stable container carrier is compared with the module The first weight value is calculated according to the stable trend reference value and the average stable trend reference value.
在本發明的一實施例中,上述的第一載體資訊包含對應於載體的效能以及對應於載體所在區域的至少一載體的平均效能,其中穩定容器載體比對模組根據效能以及平均效能計算第一權重值。In an embodiment of the present invention, the above-mentioned first carrier information includes the performance corresponding to the carrier and the average performance of at least one carrier corresponding to the region where the carrier is located, wherein the stable container carrier comparison module calculates the first carrier according to the performance and the average performance. a weight value.
在本發明的一實施例中,上述的第一載體資訊包含對應於載體的建議容納容器數量以及已容納容器數量,其中穩定容器載體比對模組根據建議容納容器數量以及已容納容器數量計算第一權重值。In an embodiment of the present invention, the above-mentioned first carrier information includes the recommended number of containers and the number of contained containers corresponding to the carrier, wherein the stable container carrier comparison module calculates the first number of containers according to the recommended number of containers and the number of contained containers. a weight value.
在本發明的一實施例中,上述的第一載體資訊包含對應於載體的可擴充硬體配置以及已建立硬體配置,其中穩定容器載體比對模組根據可擴充硬體配置以及已建立硬體配置計算第一權重值。In an embodiment of the present invention, the above-mentioned first carrier information includes an expandable hardware configuration corresponding to the carrier and an established hardware configuration, wherein the stable container carrier comparison module is based on the expandable hardware configuration and the established hardware configuration. The body configuration calculates the first weight value.
在本發明的一實施例中,上述的多個模組更包含容器管理模組。容器管理模組根據特徵表格管理軟體容器的版本,其中特徵表格包含軟體容器的軟體容器名稱。In an embodiment of the present invention, the above-mentioned modules further include a container management module. The container management module manages the version of the software container according to the feature table, wherein the feature table contains the software container name of the software container.
在本發明的一實施例中,上述的容器暫存區包含第一軟體容器以及第二軟體容器,其中容器管理模組響應於第一軟體容器的第一軟體容器名稱與第二軟體容器的第二軟體容器名稱相同,並且第一軟體容器的第一時間戳記早於第二軟體容器的第二時間戳記,而判斷第二軟體容器為第一軟體容器的更新版本,其中容器管理模組以第二軟體容器取代容器暫存區中的第一軟體容器,並且在第一時段過後刪除第一軟體容器。In an embodiment of the present invention, the container temporary storage area includes a first software container and a second software container, wherein the container management module responds to the first software container name of the first software container and the first software container name of the second software container. The names of the two software containers are the same, and the first time stamp of the first software container is earlier than the second time stamp of the second software container, and it is determined that the second software container is an updated version of the first software container, wherein the container management module uses the first The second soft container replaces the first soft container in the container temporary storage area, and the first soft container is deleted after the first period of time.
在本發明的一實施例中,上述的容器編譯模組根據編譯檔產生軟體容器的軟體容器名稱,其中特徵表格包含軟體容器名稱,其中容器管理模組根據容器名稱對應表更新軟體容器名稱。In an embodiment of the present invention, the above-mentioned container compilation module generates software container names of the software containers according to the compilation file, wherein the feature table includes the software container names, and the container management module updates the software container names according to the container name correspondence table.
在本發明的一實施例中,上述的容器編譯模組響應於至少一檔案與編譯檔不匹配而通過收發器傳送警示訊息。In an embodiment of the present invention, the above-mentioned container compilation module transmits an alert message through the transceiver in response to a mismatch between at least one file and the compilation file.
在本發明的一實施例中,上述的容器分類模組響應於容器類型對應表與至少一標籤不匹配而通過收發器傳送警示訊息。In an embodiment of the present invention, the above-mentioned container classification module transmits a warning message through the transceiver in response to a mismatch between the container type correspondence table and the at least one label.
在本發明的一實施例中,上述的容器驗證模組響應於在測試軟體容器時未接收到軟體容器的回應而通過收發器傳送警示訊息。In an embodiment of the present invention, the above-mentioned container verification module transmits an alert message through the transceiver in response to not receiving a response from the software container when testing the software container.
本發明的一種為軟體容器選擇載體的方法,包含:接收至少一檔案以及編譯檔;根據編譯檔將至少一檔案封裝為軟體容器,根據編譯檔產生軟體容器的至少一標籤,並且將軟體容器儲存於容器暫存區;根據容器類型對應表以及至少一標籤對軟體容器進行分類以產生特徵表格,並且根據容器介接對應表定義軟體容器的存放位址;接收測試腳本,並且根據測試腳本測試軟體容器以產生測試結果;接收分別對應於多個載體的多個載體資訊,根據多個載體資訊計算分別對應於多個載體的多個權重值,根據多個權重值從多個載體中選擇載體,並且將軟體容器安裝於載體的存放位址;以及傳送測試結果以及對應於載體的載體資訊。A method for selecting a carrier for a software container of the present invention includes: receiving at least one file and a compiled file; encapsulating at least one file into a software container according to the compiled file, generating at least one label of the software container according to the compiled file, and storing the software container in the container temporary storage area; classify the software container according to the container type correspondence table and at least one label to generate a feature table, and define the storage address of the software container according to the container interface correspondence table; receive the test script, and test the software according to the test script a container to generate test results; receive multiple carrier information corresponding to multiple carriers, calculate multiple weight values corresponding to multiple carriers according to the multiple carrier information, select a carrier from multiple carriers according to the multiple weight values, And the software container is installed in the storage address of the carrier; and the test result and the carrier information corresponding to the carrier are transmitted.
基於上述,本發明可在不需人力介入的情況下完成軟體容器的自動化封裝、分類、管理、驗證、比對和上架流程。本發明具備流程化與自動化的功能,且具時效性、正確性、整合性、效率性以及便利性等優點。本發明可減輕審核大量上架軟體容器時需花費的人力,並可大幅地提升維運管理之便利性。Based on the above, the present invention can complete the process of automatic packaging, classification, management, verification, comparison and putting on the shelf of the software container without human intervention. The present invention has the functions of streamlining and automation, and has the advantages of timeliness, correctness, integration, efficiency and convenience. The present invention can reduce the manpower required for reviewing a large number of software containers to be put on the shelf, and can greatly improve the convenience of maintenance, operation and management.
為了使本發明之內容可以被更容易明瞭,以下特舉實施例作為本發明確實能夠據以實施的範例。另外,凡可能之處,在圖式及實施方式中使用相同標號的元件/構件/步驟,係代表相同或類似部件。In order to make the content of the present invention more comprehensible, the following specific embodiments are given as examples according to which the present invention can indeed be implemented. Additionally, where possible, elements/components/steps using the same reference numerals in the drawings and embodiments represent the same or similar parts.
圖1根據本發明的實施例繪示一種為軟體容器選擇載體的電子裝置100的示意圖。電子裝置100可包含處理器110、儲存媒體120以及收發器130。FIG. 1 is a schematic diagram of an
處理器110例如是中央處理單元(central processing unit,CPU),或是其他可程式化之一般用途或特殊用途的微控制單元(micro control unit,MCU)、微處理器(microprocessor)、數位信號處理器(digital signal processor,DSP)、可程式化控制器、特殊應用積體電路(application specific integrated circuit,ASIC)、圖形處理器(graphics processing unit,GPU)、影像訊號處理器(image signal processor,ISP)、影像處理單元(image processing unit,IPU)、算數邏輯單元(arithmetic logic unit,ALU)、複雜可程式邏輯裝置(complex programmable logic device,CPLD)、現場可程式化邏輯閘陣列(field programmable gate array,FPGA)或其他類似元件或上述元件的組合。處理器110可耦接至儲存媒體120以及收發器130,並且存取和執行儲存於儲存媒體120中的多個模組和各種應用程式。The
儲存媒體120例如是任何型態的固定式或可移動式的隨機存取記憶體(random access memory,RAM)、唯讀記憶體(read-only memory,ROM)、快閃記憶體(flash memory)、硬碟(hard disk drive,HDD)、固態硬碟(solid state drive,SSD)或類似元件或上述元件的組合,而用於儲存可由處理器OOO執行的多個模組或各種應用程式。在本實施例中,儲存媒體120可儲存包括容器上架模組121、容器編譯模組122、容器分類模組123、容器管理模組124、容器驗證模組125、穩定容器載體比對模組126以及容器確認模組127等多個模組,其功能將於後續說明。The
收發器130以無線或有線的方式傳送及接收訊號。收發器130還可以執行例如低噪聲放大、阻抗匹配、混頻、向上或向下頻率轉換、濾波、放大以及類似的操作。The
圖2根據本發明的實施例繪示由電子裝置100為軟體容器選擇載體的示意圖。容器上架模組121可通過收發器130接收一或多個檔案以及對應所述一或多個檔案的編譯檔。容器編譯模組122可包含容器暫存區。容器編譯模組122可自容器上架模組121取得一或多個檔案以及對應所述一或多個檔案的編譯檔。接著,容器編譯模組122可根據編譯檔來將一或多個檔案封裝為軟體容器。FIG. 2 is a schematic diagram illustrating selection of a carrier for a software container by the
容器編譯模組122可根據編譯檔來產生軟體容器的軟體容器名稱。舉例來說,編譯檔可包含軟體容器名稱。容器編譯模組122可根據編譯檔中的軟體容器名稱來命名軟體容器。此外,容器編譯模組122還可根據編譯檔來為封裝好的軟體容器建立一或多個標籤(或索引),並將軟體容器儲存在容器暫存區中,以供容器驗證模組125存取,藉此提高軟體容器的使用率。若在封裝軟體容器的過程中,容器編譯模組122發現存在與編譯檔不匹配的檔案,則容器編譯模組122將不會產生軟體容器。此外,容器編譯模組122可響應於檔案與編譯檔不匹配而在日誌中記錄異常情形,並可通過收發器130傳送警示訊息或日誌。管理人員可依據警示訊息或日誌的提示來判斷是否重新配置需封裝成軟體容器的檔案或重新編寫編譯檔。The
容器分類模組123可預存或通過收發器130取得容器類型對應表以及容器介接對應表。容器類型對應表可記載標籤與分類的關係。容器介接對應表可記載軟體容器的存放位址。容器分類模組123可根據容器類型對應表以及軟體容器的一或多個標籤來對容器暫存區中的軟體容器進行分類以產生特徵表格。特徵表格可包含軟體容器名稱及/或分類結果等資訊。容器分類模組123還可根據容器介接對應表決定軟體容器的存放位址。在一實施例中,容器分類模組123可通過收發器130接收來自外部電子裝置的存取指令,並且根據存取指令而通過收發器130輸出特徵表格,以供外部電子裝置的使用者判斷軟體容器的分類。在一實施例中,容器分類模組123可通過收發器130接收來自外部電子裝置的回饋指令,並可根據回饋指令更新特徵表格。換句話說,使用者可在軟體容器被錯誤分類的情況下,通過回饋指令指示容器分類模組123校正軟體容器的分類結果,增加人員作業效率及減少人工審核成本。The
容器管理模組124可根據特徵表格來管理軟體容器的版本。具體來說,容器管理模組124可判斷特徵表格是否包含了多個具有相同軟體容器名稱的軟體容器。若特徵表格包含了多個具有相同軟體容器名稱的軟體容器,代表容器暫存區儲存了多個具有相同軟體容器名稱的軟體容器。據此,容器管理模組124可讀取軟體暫存區中的多個具有相同軟體容器名稱的軟體容器的時間戳記,並且將具有最晚的時間戳記的軟體容器判斷為該些軟體容器中的更新版本。The
容器管理模組124可將更新版本的軟體容器取代舊版本的軟體容器,並可將舊版本的軟體容器暫存一特定時段,例如,容器管理模組124可在容器暫存區中規劃出一特定區域以儲存舊版本的軟體容器。若在所述特定時段期間容器管理模組124並未通過收發器130接收恢復舊版本的軟體容器的指令,則容器管理模組124可在所述特定時段過後刪除舊版本的軟體容器。若在所述特定時間容器管理模組124通過收發器130接收恢復舊版本的軟體容器的指令,則容器管理模組124可將舊版本的軟體容器取代更新版本的軟體容器。The
在一實施例中,容器管理模組124可預存或通過收發器130取得容器名稱對應表。容器管理模組124可根據容器名稱對應表來更新軟體容器的軟體容器名稱。例如,容器管理模組124可根據容器名稱對應表來將軟體容器名稱中的特定字串或符號(例如:無法被判斷的字串或符號)過濾掉,或利用容器名稱對應表中的字串或符號取代所述特定字串或符號,藉以更新軟體容器名稱。更新軟體容器名稱可有效地降低軟體容器名稱被執行時的失敗率。In one embodiment, the
容器驗證模組125可通過收發器130接收測試腳本,並可根據測試腳本測試容器暫存區中的軟體容器以產生測試結果。例如,容器驗證模組125可根據測試腳本輸入參數至軟體容器並自軟體容器接收輸出參數。容器驗證模組125可比對輸入參數和輸出參數以為軟體容器進行位元數、英數、字元或特殊參數的檢驗。在為軟體容器進行測試的期間,若容器驗證模組125並未接收到軟體容器的回應,則容器驗證模組125可判斷軟體容器的測試過程出現異常,並可在日誌中記錄異常情形。據此,容器驗證模組125可通過收發器130傳送警示訊息或日誌給管理人員。使用者可彈性地增加或更新測試腳本的內容,提高軟體容器之間的執行的相容率。The
穩定容器載體比對模組126可通過收發器130接收分別對應於多個載體的多個載體資訊,其中所述多個載體中的每一者可包含伺服器、客戶端、桌上型電腦、筆記型電腦、網路型電腦、工作站、個人數位助理(personal digital assistant,PDA)、個人電腦(personal computer,PC)或平板電腦等具有運算能力的電子裝置。穩定容器載體比對模組126可根據多個載體資訊來計算分別對應於多個載體的多個權重值,並可根據多個權重值以從多個載體中選擇一載體以安裝軟體容器。穩定容器載體比對模組126可將軟體容器安裝在受選載體的存放位址(即:由容器分類模組123所決定的存放位址)。在一實施例中,穩定容器載體比對模組126可包含容器資料庫。容器資料庫可儲存安裝了軟體容器的載體的載體資訊,以供管理人員參考。The stable container
穩定容器載體比對模組126可根據載體資訊而考量載體的穩定趨勢、效能、效率或擴充性等因素來選擇安裝軟體容器的載體,並將根據上述因素所選擇的載體的載體資訊儲存在容器資料庫中。具體來說,穩定容器載體比對模組126可根據公式(1)計算載體的權重值,並從多個載體中選擇具有最大權重值的載體以安裝軟體容器。公式(1)中的各個參數可自載體資訊取得。
…(1)
The stable container
在公式(1)中, W為權重值, 、 、 和 為權重因子。 Ds- i為前 i天之目標載體的穩定趨勢參考值 f1( i)以及目標載體所在區域的平均穩定趨勢參考值 f2( i)的函數,如公式(2)所示。 Q為穩定質量,並且 Q為 Ds- i( i=1,2,…,n,n正整數)的函數。 …(2) In formula (1), W is the weight value, , , and is the weight factor. Ds - i is a function of the stable trend reference value f 1( i ) of the target carrier on the previous i day and the average stable trend reference value f 2( i ) of the area where the target carrier is located, as shown in formula (2). Q is the stable mass, and Q is a function of Ds - i ( i = 1,2,...,n, n positive integers). …(2)
具體來說,載體資訊可包含目標載體的在前
i天的異常發生次數
B1(
i),並可包含對應於目標載體所在區域的多個載體(所述多個載體包含目標載體)在前
i天的平均異常發生次數
B2(
i),其中所述多個載體中的每一者的地理位置與目標載體相同,或所述多個載體中的每一者與目標載體是由相同的閘道器管理。穩定容器載體比對模組126可將對應於目標載體的個別預設分數
A1減去異常發生次數的函數
g1(
B1(
i))以計算穩定趨勢參考值
f1(
i)。穩定容器載體比對模組126可將對應於目標載體所在區域的平均預設分數減去平均異常發生次數的函數
g2(
B2(
i))以計算平均穩定趨勢參考值
f2(
i)。穩定容器載體比對模組126可根據穩定趨勢參考值
f1(
i)以及平均穩定趨勢參考值
f2(
i)計算穩定質量
Q,從而根據穩定質量
Q計算權重值
W。
Specifically, the carrier information may include the number of abnormal occurrences B 1( i ) of the target carrier in the previous i days, and may include a plurality of carriers (the plurality of carriers including the target carrier) corresponding to the region where the target carrier is located. Average number of abnormal occurrences B2 ( i ) for i days, wherein each of the plurality of carriers is geographically the same as the target carrier, or each of the plurality of carriers and the target carrier are composed of the same Gateway management. The stable container
在公式(1)中,
S為載體個別因素,並且S為效能
B和平均效能
I的函數。具體來說,載體資訊還可包含目標載體的效能
B,並可包含目標載體所在區域的多個載體(所述多個載體包含目標載體)的平均效能
I。穩定容器載體比對模組126可根據效能
B以及平均效能
I計算個別因素
S,從而根據個別因素
S計算權重值
W。在一實施例中,載體的效能與載體的頻寬、硬體效能數值、RAID陣列資源或快取支援等參數有關。
In formula (1), S is the carrier individual factor, and S is a function of efficacy B and average efficacy I. Specifically, the carrier information may further include the performance B of the target carrier, and may include the average performance I of a plurality of carriers in the region where the target carrier is located (the plurality of carriers include the target carrier). The stable container
載體資訊還可包含目標載體的建議容納容器數量
O(可由管理人員根據載體的規格而定義),並可包含目標載體的已容納容器數量
U(即:目標載體已經安裝的軟體容器的個數)。穩定容器載體比對模組126可根據建議容納容器數量
O以及已容納容器數量
U計算權重值
W。
The carrier information can also include the recommended number of containers O of the target carrier (which can be defined by the management personnel according to the specifications of the carrier), and the number of containers that have been accommodated by the target carrier U (ie: the number of software containers that the target carrier has installed) . The stable container-
載體資訊還可包含目標載體的可擴充硬體配置
E(可由管理人員根據載體的規格而定義),並可包含目標載體的已建立硬體配置
F(即:目標載體已經擴充的硬體配置)。穩定容器載體比對模組126可根據建議可擴充硬體配置
E以及已建立硬體配置
F計算權重值
W。
The carrier information can also include the expandable hardware configuration E of the target carrier (which can be defined by the administrator according to the specifications of the carrier), and can include the established hardware configuration F of the target carrier (ie: the hardware configuration of the target carrier that has been expanded) . The stable container
在穩定容器載體比對模組126為軟體容器選擇適當的載體後,穩定容器載體比對模組126可將受選載體的載體資訊儲存在容器資料庫中。容器確認模組127可自容器資料庫取得載體資訊,並可自容器驗證模組125取得軟體容器的測試結果。容器驗證模組125可通過收發器130將載體資訊傳送給管理人員(例如:傳送至管理人員的電子信箱),以供管理人員參考。After the stable container
圖3根據本發明的實施例繪示一種為軟體容器選擇載體的方法的流程圖,其中所述方法可由如圖1所示的電子裝置100實施。在步驟S301中,接收至少一檔案以及編譯檔。在步驟S302中,根據編譯檔將至少一檔案封裝為軟體容器,根據編譯檔產生軟體容器的至少一標籤,並且將軟體容器儲存於容器暫存區。在步驟S303中,根據容器類型對應表以及至少一標籤對軟體容器進行分類以產生特徵表格,並且根據容器介接對應表定義軟體容器的存放位址。在步驟S304中,接收測試腳本,並且根據測試腳本測試軟體容器以產生測試結果。在步驟S305中,接收分別對應於多個載體的多個載體資訊,根據多個載體資訊計算分別對應於多個載體的多個權重值,根據多個權重值從多個載體中選擇載體,並且將軟體容器安裝於載體的存放位址。在步驟S306中,傳送測試結果以及對應於載體的載體資訊。3 is a flowchart illustrating a method for selecting a carrier for a software container according to an embodiment of the present invention, wherein the method may be implemented by the
綜上所述,本發明的容器編譯模組可依據業務功能特性進行軟體容器的上架。容器編譯模組可負責封裝獨立的軟體容器,並且其分配為單一或多個檔案配置,建立單一或多個檔案的封裝,即不須重複開發同一功能的軟體容器。容器編譯模組還可將軟體容器存放在容器暫存區,從而有效地提高軟體容器的使用率。To sum up, the container compiling module of the present invention can carry out the launch of the software container according to the business function characteristics. The container compilation module is responsible for encapsulating independent software containers, and assigning them to single or multiple file configurations, creating a single or multiple file encapsulation, that is, it is not necessary to repeatedly develop software containers with the same function. The container compilation module can also store the software container in the container temporary storage area, thereby effectively improving the utilization rate of the software container.
本發明的容器分類模組可依據使用者自訂的組態來為軟體容器進行分類。且可透過條件設定來判斷軟體容器的組態,區分各型態的軟體容器。容器分類模組可讓使用者得以有效率地使用分類好的軟體容器,並可接收來自使用者的回饋意見,從而增加人員作業效率以及有效減少人工審核成本。The container classification module of the present invention can classify software containers according to a user-defined configuration. Moreover, the configuration of the software container can be judged through the condition setting, and various types of software containers can be distinguished. The container classification module allows users to efficiently use the classified software containers, and can receive feedback from users, thereby increasing the efficiency of personnel work and effectively reducing the cost of manual review.
本發明的容器管理模組可為軟體容器進行版本管理。容器管理模組可刪除軟體容器的舊有版本,保留舊有版本一定期限。在期限內可恢復。容器管理模組還可對容器命名規則做檢查和異動,自動過濾無效名稱或符號,可有效降低容器執行之失敗率。The container management module of the present invention can perform version management for software containers. The container management module can delete the old version of the software container and keep the old version for a certain period of time. Recoverable within the time limit. The container management module can also check and change the container naming rules, and automatically filter invalid names or symbols, which can effectively reduce the failure rate of container execution.
本發明的容器驗證模組可對軟體容器進行測試和驗證,判斷軟體容器是否可依照測試和驗證腳本正常地執行。容器驗證模組還可彈性地增加、更新腳本資料內容,且對輸入/輸出參數進行確認檢查,以有效地提高軟體容器之間的相容率。The container verification module of the present invention can test and verify the software container, and judge whether the software container can be executed normally according to the test and verification script. The container verification module can also flexibly increase and update the content of script data, and perform confirmation checks on input/output parameters, so as to effectively improve the compatibility rate between software containers.
本發明的穩定容器載體比對模組可從眾多的載體中挑選適於安裝軟體容器的載體。穩定容器載體比對模組可透過權重公式的計算,考量比對各個載體的穩定趨勢、效能、效率或擴充性等條件,在短時間內找出與軟體容器匹配的載體,大幅地提升軟體容器載體維運管理之便利性。The stable container carrier comparison module of the present invention can select a carrier suitable for installing a soft container from a large number of carriers. The stable container carrier comparison module can calculate the stable trend, performance, efficiency or scalability of each carrier through the calculation of the weight formula, and find the carrier that matches the software container in a short time, greatly improving the software container. The convenience of carrier maintenance and management.
本發明的容器確認模組可讀取安裝了軟體容器之載體的載體資訊,可不需管理人員介入,並可減少因人為因素而導致資訊內容回報錯誤。容器確認模組可自動化地依據郵件寄發之模板,將資訊內容有效篩選出來,並回傳至管理者信箱。The container confirmation module of the present invention can read the carrier information of the carrier in which the software container is installed, without the intervention of management personnel, and can reduce the error of information content reporting due to human factors. The container confirmation module can automatically filter out the information content according to the template sent by the mail, and send it back to the administrator's mailbox.
100:電子裝置100: Electronics
110:處理器110: Processor
120:儲存媒體120: Storage Media
121:容器上架模組121: Container Shelving Module
122:容器編譯模組122: Container Compilation Module
123:容器分類模組123: Container classification module
124:容器管理模組124: Container Management Module
125:容器驗證模組125: Container Verification Module
126:穩定容器載體比對模組126: Stable container carrier comparison module
127:容器確認模組127: Container Confirmation Module
130:收發器130: Transceiver
S301、S302、S303、S304、S305、S306:步驟S301, S302, S303, S304, S305, S306: Steps
圖1根據本發明的實施例繪示一種為軟體容器選擇載體的電子裝置的示意圖。 圖2根據本發明的實施例繪示由電子裝置為軟體容器選擇載體的示意圖。 圖3根據本發明的實施例繪示一種為軟體容器選擇載體的方法的流程圖。 FIG. 1 is a schematic diagram illustrating an electronic device for selecting a carrier for a software container according to an embodiment of the present invention. FIG. 2 is a schematic diagram illustrating selection of a carrier for a software container by an electronic device according to an embodiment of the present invention. 3 is a flowchart illustrating a method of selecting a carrier for a soft container according to an embodiment of the present invention.
S301、S302、S303、S304、S305、S306:步驟 S301, S302, S303, S304, S305, S306: Steps
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW109144027A TWI754488B (en) | 2020-12-14 | 2020-12-14 | Electronic device and method of selecting carrier for software container |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW109144027A TWI754488B (en) | 2020-12-14 | 2020-12-14 | Electronic device and method of selecting carrier for software container |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI754488B true TWI754488B (en) | 2022-02-01 |
TW202223627A TW202223627A (en) | 2022-06-16 |
Family
ID=81329350
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW109144027A TWI754488B (en) | 2020-12-14 | 2020-12-14 | Electronic device and method of selecting carrier for software container |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI754488B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160351936A1 (en) * | 2015-03-17 | 2016-12-01 | Keegan Cooke | Substrate-powered energy storage and generation system |
TW201820128A (en) * | 2016-11-21 | 2018-06-01 | 財團法人資訊工業策進會 | Computer device and method for facilitating user to manage containers |
TW201901551A (en) * | 2017-05-24 | 2019-01-01 | 大陸商中國銀聯股份有限公司 | Method and device for configuring safety carrier |
TW202008154A (en) * | 2018-08-03 | 2020-02-16 | 廣達電腦股份有限公司 | Software container based systems and methods for providing cloud services |
-
2020
- 2020-12-14 TW TW109144027A patent/TWI754488B/en active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160351936A1 (en) * | 2015-03-17 | 2016-12-01 | Keegan Cooke | Substrate-powered energy storage and generation system |
TW201820128A (en) * | 2016-11-21 | 2018-06-01 | 財團法人資訊工業策進會 | Computer device and method for facilitating user to manage containers |
TW201901551A (en) * | 2017-05-24 | 2019-01-01 | 大陸商中國銀聯股份有限公司 | Method and device for configuring safety carrier |
TW202008154A (en) * | 2018-08-03 | 2020-02-16 | 廣達電腦股份有限公司 | Software container based systems and methods for providing cloud services |
Also Published As
Publication number | Publication date |
---|---|
TW202223627A (en) | 2022-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11106459B2 (en) | Distributed parallel build system | |
CN111033468B (en) | System and method for implementing different types of blockchain contracts | |
US7483959B2 (en) | Method and system for extensible data gathering | |
US6678885B2 (en) | System and method for common code generation | |
EP1872215B1 (en) | Implementing data-compatibility-based version scheme | |
US9424003B1 (en) | Schema-less system output object parser and code generator | |
CN116757843A (en) | System and method for executing different types of blockchain contracts | |
US8396846B2 (en) | Database trigger modification system and method | |
US7650346B2 (en) | User-defined type consistency checker | |
US20070245335A1 (en) | Software management apparatus and software management method | |
CN112654977A (en) | Publish to data warehouse | |
CN108595187A (en) | Method, device and the storage medium of Android installation kit integrated software development kit | |
CN110532182B (en) | Automatic testing method and device for virtualization platform | |
WO2008024594A2 (en) | Methods for efficient data version verification | |
CN110688096B (en) | Method and device for constructing application program containing plug-in, medium and electronic equipment | |
US7840603B2 (en) | Method and apparatus for database change management | |
US8296723B2 (en) | Configurable unified modeling language building blocks | |
CN111736762B (en) | Synchronous updating method, device, equipment and storage medium of data storage network | |
WO2022012305A1 (en) | Method and apparatus for managing model file in inference application | |
US8533702B2 (en) | Dynamically resolving fix groups for managing multiple releases of multiple products on multiple systems | |
JP2020197873A (en) | Information processing system and method for controlling information processing system | |
US20210124752A1 (en) | System for Data Collection, Aggregation, Storage, Verification and Analytics with User Interface | |
TWI754488B (en) | Electronic device and method of selecting carrier for software container | |
WO2023151397A1 (en) | Application program deployment method and apparatus, device, and medium | |
US10055516B1 (en) | Testing open mobile alliance server payload on an open mobile alliance client simulator |