Cho thuê máy chủ vật lý hay thuê server vật lý là giải pháp hạ tầng CNTT cung cấp tài nguyên phần cứng riêng biệt 100% gồm CPU (Physical CPU), RAM ECC, SSD/NVMe Enterprise, Bandwidth và Static IP (IP tĩnh), giúp doanh nghiệp tối ưu hiệu năng, hiệu suất, bảo mật, toàn quyền kiểm soát và quản trị hệ thống. Dịch vụ Dedicated Server (máy chủ riêng) được triển khai dưới hình thức colocation trên hệ thống tủ rack tại Data Center đạt chuẩn Uptime Tier III của Uptime Institute, đặt tại Hà Nội và TP.HCM, đảm bảo SLA (Service Level Agreement) 99.99%, hệ thống điện dự phòng N+1, UPS, làm mát và giám sát 24/7/365.
Khác với Cloud Server (IaaS) hay VPS (máy chủ ảo truyền thống) sử dụng công nghệ ảo hóa (VMware, KVM), máy chủ vật lý không chia sẻ tài nguyên, phù hợp cho các hệ thống E-commerce, CRM, SAP ERP, Core Banking, Database MySQL/SQL Server, Big Data, AI/ML workload yêu cầu hiệu năng cao và độ ổn định tuyệt đối.
Dịch vụ cho thuê server vật lý giá rẻ tại FPT Cloud được thiết kế theo từng nhóm cấu hình khác nhau, đáp ứng nhu cầu từ hệ thống cơ bản đến hạ tầng chuyên sâu. Chi phí sẽ phụ thuộc vào nhiều yếu tố như dòng CPU sử dụng (Intel Xeon hoặc AMD EPYC), dung lượng RAM, loại và cơ chế lưu trữ (SSD NVMe Enterprise, RAID 1/RAID 10), băng thông trong nước và quốc tế, số lượng IP (IPv4/IPv6) cũng như các dịch vụ được tích hợp như Managed Service, Backup Services hay Disaster Recovery.
Vì sao các tổ chức, doanh nghiệp, tập đoàn lớn, công ty nước ngoài tin chọn FPT Cloud cho hạ tầng công nghệ thông tin của mình (Theo báo cáo của IT Pro, 86% các tổ chức đang sử dụng dedicated server)? Những vấn đề mà khách hàng thường hỏi và quan tâm khi chọn thuê máy chủ riêng (thuê server riêng) là gì? Nội dung dưới đây sẽ giúp bạn hiểu rõ, đồng thời có được đa góc tiếp cận và tự tin chọn lựa được giải pháp xây dựng hạ tầng riêng biệt, hiệu năng cao phù hợp nhất cho nhu cầu chuyên biệt để thay thế Cloud Server và VPS cũng như tối ưu chi phí vận hành của bạn.
1. Bảng giá dịch vụ thuê máy chủ vật lý giá rẻ tại FPT Cloud
Giá các gói dịch vụ cho thuê server vật lý giá siêu rẻ theo tháng của FPT Cloud
Gói thuê server vật lý/
Thông số
Dedicated Server 1
Dedicated Server 2
Dedicated Server 3
CPU (GHz)
Intel Xeon / AMD EPYC – 8 Cores / 16 Threads
Intel Xeon / AMD EPYC – 16 Cores / 32 Threads
Intel Xeon / AMD EPYC – 12 Cores / 24 Threads
CPU Generation
Xeon Silver / EPYC Rome trở lên
Xeon Gold / EPYC Rome/Milan
Xeon Gold / EPYC Milan
CPU Clock (Base/Turbo)
~2.1 – 3.2 GHz
~2.2 – 3.4 GHz
~2.3 – 3.7 GHz
Hiệu năng tương đương
~ AWS c5.2xlarge
~ AWS c5.4xlarge
~ AWS c5.3xlarge
RAM (GB)
48GB DDR4 ECC
48GB DDR4 ECC
48GB DDR4 ECC
Max RAM Upgrade (GB)
128 GB
256 GB
192 GB
SSD Storage (GB)
2 x 480GB SSD NVMe Enterprise (RAID 1)
2 x 480GB SSD NVMe Enterprise (RAID 1)
2 x 480GB SSD NVMe Enterprise (RAID 1)
RAID Configuration
RAID 1 (Hardware RAID)
RAID 1 (Hardware RAID)
RAID 1 (Hardware RAID)
Disk IOPS
~400,000 IOPS
~500,000 IOPS
~450,000 IOPS
Mở rộng lưu trữ
Có
Có
Có
Cổng mạng (Gbps)
1 Gbps
1 Gbps
10 Gbps
Băng thông trong nước (Mbps)
100 Mbps
200 Mbps
300 Mbps
Băng thông quốc tế (Mbps)
10 Mbps
10 Mbps
10 Mbps
Dữ liệu truyền (Data Transfer)
Không giới hạn
Không giới hạn
Không giới hạn
IP Address
01 IPv4 tĩnh
01 IPv4 tĩnh
01 IPv4 tĩnh
IPv4 bổ sung
Tùy chọn
Tùy chọn
Tùy chọn
Hỗ trợ IPv6
Có support
Có support
Có support
Anti-DDoS
Advanced
Enterprise
Enterprise
Firewall
Software + Hardware
Enterprise Hardware Firewall
Software + Hardware
KVM / Remote Console
IPMI
iDRAC Enterprise
iDRAC / IPMI
Virtualization
Proxmox / VMware
All Hypervisors Supported
Proxmox / VMware / Hyper-V
Monitoring
24/7/365
24/7/365
24/7/365
Backup
Snapshot / Backup / DR Ready
Snapshot / Backup / DR Ready
Snapshot / Backup / DR Ready
OS hỗ trợ
Windows Server / Linux
Windows Server / Linux
Windows Server / Linux
SLA (Service Level Agreement)
99.99%
99.99%
99.99%
SLA Support
< 30 phút
< 10 phút
< 15 phút
Latency nội địa
< 5 ms
< 5 ms
< 5 ms
Data Center Location
Tier III – HN / HCM
Tier III – HN / HCM
Tier III – HN / HCM
Use Cases đề xuất
Website, CRM, ERP nội bộ có quy mô vừa
AI/ML, Big Data, SAP S/4HANA, Core Banking, Database nặng, ảo hóa chuyên sâu
E-commerce lớn, SaaS, Game Server, Streaming, High Traffic
Chính sách & Ưu đãi áp dụng cho tất cả gói thuê máy chủ riêng
Tặng gói Port Management khi thanh toán 12 tháng (1 năm - 365 ngày). Chuyên viên kỹ thuật viên của FPT Cloud sẽ hỗ trợ quản lý và cấu hình cổng mạng chuyên nghiệp, tối ưu hiệu suất kết nối cho quý khách hàng.
Tặng server khi khách hàng thanh toán 24 tháng (2 năm - 730 ngày). Doanh nghiệp được sở hữu thêm một server riêng biệt để mở rộng hạ tầng, triển khai môi trường dự phòng (Backup/DR) hoặc phục vụ hệ thống mới mà không phát sinh thêm chi phí đầu tư phần cứng.
Hỗ trợ cài đặt, thiết lập server, cấu hình theo nhu cầu hoàn toàn miễn phí bao gồm: triển khai OS (hệ điều hành), thiết lập RAID, phân vùng ổ cứng, cấu hình mạng, bảo mật cơ bản. Ngoài ra, chúng tôi cũng hỗ trợ cài đặt các phần mềm khác theo yêu cầu.
Cho phép nâng cấp, hạ cấp, thay đổi cấu hình (RAM, SSD/NVMe, băng thông nội địa & quốc tế, IP tĩnh IPv4/IPv6, Network Ports) theo nhu cầu hay từng giai đoạn phát triển của doanh nghiệp.
Toàn quyền điều khiển, quản trị hệ thống (Full Root/Administrator Access) thông qua nền tảng quản lý và KVM Online, giúp business chủ động vận hành.
Được hỗ trợ bởi đội ngũ kỹ thuật có trình độ chuyên môn cao, am hiểu các hệ điều hành Windows Server (2019, 2022, 2025), Windows (7/8/10), Linux (như CentOS, Ubuntu và Debian), phần mềm quản trị cPanel, DirectAdmin và các nền tảng Docker, Containers, Kubernetes, hỗ trợ tận tâm qua hotline, live chat hoặc ticket 24/7/365.
Tư vấn sản phẩm miễn phí về giải pháp mở rộng hạ tầng từ bộ phận kinh doanh bao gồm: công nghệ ảo hóa, dịch vụ sao lưu dữ liệu, dịch vụ disaster recovery vào trong hạ tầng server khi thuê.
Nhận báo giá thuê server
Liên hệ
Liên hệ
Liên hệ
Thuê server vật lý
Thuê ngay
Thuê ngay
Thuê ngay
Tùy chỉnh cấu hình server
Cấu hình & Xem giá
Cấu hình & Xem giá
Cấu hình & Xem giá
Xem Data Center
Xem ngay
Xem ngay
Xem ngay
Bảng 1.1: Bảng giá và cấu hình chi tiết của các gói dịch vụ cho thuê server vật lý tại FPT Cloud: Dedicated Server 1, Dedicated Server 2, Dedicated Server 3
[caption id="attachment_63967" align="aligncenter" width="1200"] FPT Cloud cung cấp dịch vụ cho thuê máy chủ vật lý với hạ tầng riêng biệt và mạnh mẽ đạt tiêu chuẩn Uptime Tier III của Data Center[/caption]
Hướng dẫn chọn gói dịch vụ cho thuê máy chủ vật lý tối ưu chi phí, phù hợp với nhu cầu và hệ thống của doanh nghiệp
(function () {
'use strict';
if (!window.customElements) return;
var CS = document.currentScript;
var HEAD_CPU = 0.7, HEAD_RAM = 0.75, YEARS = 3, FREE_DISK = 1.3, OS_GB = 50, INTL_SHARE = 0.3, INTL_INCLUDED = 10;
var PKG = [
{id:'ds1',n:'Dedicated Server 1',cores:8,maxRam:128,iops:400000,port:'1 Gbps',bw:100},
{id:'ds3',n:'Dedicated Server 3',cores:12,maxRam:192,iops:450000,port:'10 Gbps',bw:300},
{id:'ds2',n:'Dedicated Server 2',cores:16,maxRam:256,iops:500000,port:'1 Gbps',bw:200}
];
var WL = [
{id:'web',n:'Website, E-commerce',d:'Web, cửa hàng trực tuyến',icon:'i-web',coreBase:2,perCore:250,ramBase:8,ramUnit:0.02,iops:5,kbps:150},
{id:'erp',n:'ERP, CRM nội bộ',d:'SAP, phần mềm quản trị',icon:'i-erp',coreBase:2,perCore:50,ramBase:16,ramUnit:0.1,iops:20,kbps:50},
{id:'db',n:'Database',d:'MySQL, SQL Server',icon:'i-db',coreBase:2,perCore:60,ramBase:16,ramUnit:0.08,iops:60,kbps:30},
{id:'virt',n:'Ảo hóa',d:'Proxmox, VMware, Hyper-V',icon:'i-virt',coreBase:2,perCore:2,ramBase:8,ramUnit:6,iops:300,kbps:2000},
{id:'ai',n:'AI/ML',d:'Huấn luyện, suy luận mô hình',icon:'i-ai',coreBase:4,perCore:20,ramBase:32,ramUnit:0.5,iops:100,kbps:200},
{id:'bigdata',n:'Big Data',d:'Xử lý, phân tích dữ liệu lớn',icon:'i-disk',coreBase:4,perCore:25,ramBase:32,ramUnit:0.6,iops:150,kbps:200},
{id:'game',n:'Game, Streaming',d:'Lưu lượng truy cập cao',icon:'i-game',coreBase:2,perCore:150,ramBase:8,ramUnit:0.03,iops:10,kbps:300}
];
var RAM_STEPS = [48,64,96,128,192,256];
var DISKS = [480,960,1920,3840];
var LIMITS = {
users:{min:10,max:20000,step:10,label:'Người dùng đồng thời',hint:'lúc cao điểm',unit:'người',icon:'i-user'},
vms:{min:1,max:200,step:1,label:'Số máy ảo dự kiến',hint:'chạy cùng lúc',unit:'máy ảo',icon:'i-virt'},
data:{min:50,max:8000,step:50,label:'Dung lượng dữ liệu hiện tại',hint:'chưa tính hệ điều hành',unit:'GB',icon:'i-disk'},
growth:{min:0,max:100,step:5,label:'Tăng trưởng dữ liệu mỗi năm',hint:'tính cho '+YEARS+' năm',unit:'%',icon:'i-grow'}
};
var CSS = [
':host{display:block;--brand-800:#004085;--brand-700:#0062cc;--brand-600:#007bff;--brand-400:#4da3ff;--brand-100:#e2f0ff;--brand-50:#f0f7ff;',
'--orange-500:#fd7e14;--orange-300:#ffc27a;--orange-50:#fff4ea;--orange-700:#a04600;--green-600:#1e7e34;--green-500:#28a745;',
'--ink-900:#212529;--ink-500:#5f6872;--ink-300:#ced4da;--ink-200:#dee2e6;--ink-100:#f8f9fa;',
'font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink-900);line-height:1.5;-webkit-font-smoothing:antialiased}',
'*,*::before,*::after{box-sizing:border-box}',
'.page{container:fds/inline-size;width:100%;max-width:880px;margin:0 auto}',
'button,input{font:inherit;color:inherit}',
':focus-visible{outline:3px solid var(--brand-600);outline-offset:2px}',
'.hero{text-align:center;margin:0 0 8px}',
'.eyebrow{display:inline-flex;align-items:center;gap:8px;background:var(--brand-100);border:1px solid #b8d9ff;color:var(--brand-800);font-weight:700;font-size:12px;letter-spacing:.06em;text-transform:uppercase;padding:6px 16px;border-radius:6px}',
'.eyebrow i{width:6px;height:6px;border-radius:50%;background:var(--orange-500)}',
'.h1{margin:8px 0 6px;font-size:clamp(18px,2.6cqi,24px);line-height:1.3;font-weight:700;color:var(--brand-800)}',
'.h1 em{font-style:normal;color:var(--orange-500)}',
'.hero .lead{margin:0;color:var(--ink-500);font-size:14px}',
'.card{background:#fff;border:1px solid var(--ink-200);border-radius:8px;box-shadow:0 1px 2px rgba(14,30,69,.06),0 4px 12px rgba(14,30,69,.06);overflow:hidden}',
'.body{padding:12px 16px;display:grid;gap:10px}',
'.sec{display:flex;align-items:center;gap:10px;min-height:24px;font-weight:600;font-size:14px;line-height:24px;margin-bottom:6px}',
'.sec small{font-weight:400;color:var(--ink-500);font-size:12px}',
'.num-b{flex:none;width:22px;height:22px;border-radius:50%;background:var(--brand-600);color:#fff;font-size:12px;font-weight:700;display:grid;place-items:center}',
'.ico{flex:none;width:32px;height:32px;border-radius:6px;background:var(--brand-100);color:var(--brand-800);display:grid;place-items:center}',
'.ico svg,.wl svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}',
'.wl-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}',
'.wl:nth-child(n){min-width:0}',
'.wl{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;border:2px solid var(--ink-200);border-radius:4px;padding:8px 4px 6px;background:#fff;cursor:pointer;transition:border-color .15s,background .15s}',
'.wl:hover{border-color:var(--brand-400)}',
'.wl .wi{width:30px;height:30px;border-radius:4px;background:var(--brand-100);color:var(--brand-800);display:grid;place-items:center}',
'.wl b{font-size:11.5px;line-height:1.25}.wl .wd{font-size:11px;color:var(--ink-500);line-height:1.25}',
'.wl.sel{border-color:var(--brand-600);background:var(--brand-50);box-shadow:0 0 0 3px rgba(0,123,255,.14)}',
'.wl.sel .wi{background:var(--brand-600);color:#fff}',
'.rows{display:grid;gap:8px}',
'.row{display:grid;gap:6px}.row[hidden]{display:none}',
'.row-top{display:flex;align-items:center;justify-content:space-between;gap:12px}',
'.row-label{display:flex;align-items:center;gap:10px;font-weight:600;font-size:14px}',
'.row-label small{font-weight:400;color:var(--ink-500);font-size:12px}',
'.badge-val{background:linear-gradient(135deg,#fd7e14,#ff922b);color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.2);border-radius:3px;padding:4px 12px;font-size:13px;font-weight:700;white-space:nowrap}',
'.ctrl{display:flex;align-items:center;gap:10px}',
'.step{flex:none;width:28px;height:28px;border:0;border-radius:3px;background:var(--brand-600);color:#fff;font-size:15px;font-weight:700;cursor:pointer;line-height:1}',
'.step:hover{background:var(--brand-700)}.step:disabled{background:var(--ink-200);color:var(--ink-500);cursor:not-allowed}',
'.num{flex:none;width:64px;height:28px;font-size:13px;border:1.5px solid var(--ink-200);border-radius:4px;background:var(--ink-100);text-align:center;font-weight:700;-moz-appearance:textfield}',
'.num::-webkit-outer-spin-button,.num::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}',
'.num:focus-visible{outline:none;border-color:var(--brand-600);box-shadow:0 0 0 2px rgba(0,123,255,.18)}',
'.num[aria-invalid="true"]{border-color:#dc3545;background:#fdecee;color:#b02a37}',
'.err{font-size:12px;color:#b02a37;margin:0}.err:empty{display:none}',
'input[type=range]{--pct:0%;flex:1;min-width:0;height:18px;-webkit-appearance:none;appearance:none;background:transparent;margin:0;cursor:pointer}',
'input[type=range]::-webkit-slider-runnable-track{height:5px;border-radius:99px;background:linear-gradient(to right,var(--brand-600),var(--brand-400)) 0/var(--pct) 100% no-repeat,var(--ink-200)}',
'input[type=range]::-moz-range-track{height:5px;border-radius:99px;background:var(--ink-200)}',
'input[type=range]::-moz-range-progress{height:5px;border-radius:99px;background:var(--brand-600)}',
'input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:16px;height:16px;margin-top:-5.5px;border-radius:50%;background:#fff;border:3px solid var(--brand-600)}',
'input[type=range]::-moz-range-thumb{width:10px;height:10px;border-radius:50%;background:#fff;border:3px solid var(--brand-600)}',
'input[type=range]:focus-visible{outline:none}',
'input[type=range]:focus-visible::-webkit-slider-thumb{outline:3px solid var(--brand-600);outline-offset:2px}',
'.line{border:0;border-top:1px solid var(--ink-200);margin:0}',
'.opts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}',
'.opt{border:1px solid var(--ink-200);border-radius:6px;padding:8px 10px;min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px}',
'.opt>span:first-child{min-width:0}',
'.opt b{display:block;font-size:13px}.opt span.s{display:block;font-size:11.5px;color:var(--ink-500)}',
'.sw{flex:none;appearance:none;-webkit-appearance:none;width:34px;height:20px;border-radius:99px;background:var(--ink-300);position:relative;margin:0;cursor:pointer;transition:background .15s}',
'.sw::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s}',
'.sw:checked{background:var(--brand-600)}.sw:checked::after{transform:translateX(14px)}',
'.seg{flex:none;display:inline-flex;border:1px solid var(--ink-300);border-radius:4px;overflow:hidden}',
'.seg button{border:0;background:#fff;padding:4px 10px;font-size:12px;font-weight:700;cursor:pointer;color:var(--ink-500)}',
'.seg button.sel{background:linear-gradient(135deg,#fd7e14,#ff922b);color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.2)}',
'.sum{background:linear-gradient(130deg,var(--brand-700),var(--brand-800));color:#fff;padding:12px 16px;position:relative;overflow:hidden}',
'.sum::before{content:"";position:absolute;right:-60px;top:-60px;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.05)}',
'.sum-top{position:relative;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end}',
'.lbl{font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:600;color:rgba(255,255,255,.85)}',
'.pkg{font-size:clamp(24px,6cqi,34px);font-weight:700;color:var(--orange-300);line-height:1.2;margin-top:2px}',
'.why{position:relative;font-size:12.5px;color:rgba(255,255,255,.9);margin:6px 0 0}',
'.cnt{text-align:right}.cnt b{display:block;font-size:22px;font-weight:700;line-height:1.2}',
'.mini{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}',
'.mini .m{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:6px;padding:10px 12px}',
'.mini .k{display:block;font-size:10.5px;letter-spacing:.05em;text-transform:uppercase;color:rgba(255,255,255,.85);font-weight:600}',
'.mini .v{display:block;font-size:14px;margin-top:2px;font-weight:700;font-variant-numeric:tabular-nums}',
'.mini .x{display:block;font-size:11.5px;color:rgba(255,255,255,.8);margin-top:1px}',
'.mini .m.warn{border-color:rgba(255,194,122,.7);background:rgba(255,194,122,.14)}.mini .m.warn .v{color:var(--orange-300)}',
'.cmp{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}',
'.cmp .c{display:flex;flex-direction:column;gap:4px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.2);border-radius:6px;padding:10px 12px}',
'.cmp .c.on{border-color:var(--orange-300);background:rgba(255,194,122,.14)}',
'.cmp b{font-size:13px}',
'.cmp small{font-size:11.5px;color:rgba(255,255,255,.85);line-height:1.4}',
'@container fds (max-width:480px){.cmp{grid-template-columns:1fr}}',
'.foot{padding:10px 16px 12px;display:grid;gap:8px}',
'.notes{margin:0;padding:10px 12px 10px 28px;background:var(--orange-50);border:1px solid #f5c49a;border-radius:6px;font-size:12.5px;color:var(--orange-700);line-height:1.55}',
'.notes[hidden]{display:none}',
'.cta{height:42px;border:0;text-decoration:none;border-radius:4px;background:linear-gradient(135deg,#fd7e14,#ff922b);color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.2);font-weight:700;font-size:14px;letter-spacing:.04em;text-transform:uppercase;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px}',
'.cta:hover{background:linear-gradient(135deg,#f06b00,#fd7e14);color:#fff}',
'.cta svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}',
'.disc{display:flex;gap:10px;background:var(--ink-100);border:1px solid var(--ink-200);border-radius:6px;padding:10px 12px;font-size:12px;color:var(--ink-500);line-height:1.5}',
'.disc svg{flex:none;width:16px;height:16px;margin-top:1px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}',
'.disc .src-t{color:#b84c00;font-weight:700}',
'.perks{display:flex;justify-content:center;flex-wrap:wrap;gap:4px 16px;font-size:12px;color:var(--ink-500)}',
'.perks span{display:flex;align-items:center;gap:6px}',
'.perks svg{width:16px;height:16px;stroke:var(--green-500);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}',
'@container fds (max-width:700px){.wl-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wl:last-child:nth-child(odd){grid-column:1/-1}.opts{grid-template-columns:1fr}.mini{grid-template-columns:repeat(2,minmax(0,1fr))}}',
'@container fds (max-width:480px){.sum-top{grid-template-columns:1fr}.cnt{text-align:left}.row-label small{display:none}.ctrl{gap:8px}.cta{font-size:12px;letter-spacing:0;padding:0 10px;text-align:center}.cta svg{display:none}}',
'@media(prefers-reduced-motion:reduce){*{transition-duration:.01ms!important}}'
].join('\n');
var HTML =
''+
''+
''+
''+
''+
''+
''+
''+
''+
''+
''+
''+
''+
'\x3Cdiv class="page">'+
'\x3Cheader class="hero" id="hero">Thuê máy chủ vật lý'+
'\x3Cdiv class="h1">Tư Vấn Cấu Hình Máy Chủ Vật Lý Theo Hệ Thống, Quy Mô Doanh Nghiệp\x3C/div>'+
'\x3Cp class="lead">Chọn loại hệ thống, quy mô và yêu cầu vận hành để nhận gói Dedicated Server phù hợp cho doanh nghiệp của bạn.\x3C/p>\x3C/header>'+
'\x3Csection class="card" aria-label="Tư vấn cấu hình máy chủ vật lý">'+
'\x3Cdiv class="body">'+
'\x3Cdiv>\x3Cdiv class="sec">1Loại hệ thống (chọn nhu cầu chính)\x3C/div>\x3Cdiv class="wl-grid" id="wl" role="radiogroup" aria-label="Loại hệ thống">\x3C/div>\x3C/div>'+
'\x3Chr class="line">'+
'\x3Cdiv>\x3Cdiv class="sec">2Quy mô (kéo thanh hoặc nhập số)\x3C/div>\x3Cdiv class="rows">\x3Cdiv class="row" id="row-users">\x3C/div>\x3Cdiv class="row" id="row-vms">\x3C/div>\x3Cdiv class="row" id="row-data">\x3C/div>\x3Cdiv class="row" id="row-growth">\x3C/div>\x3C/div>\x3C/div>'+
'\x3Chr class="line">'+
'\x3Cdiv>\x3Cdiv class="sec">3Yêu cầu vận hành\x3C/div>\x3Cdiv class="opts">'+
'Dự phòng (HA)Thêm 1 máy chủ dự phòng'+
'Có truy cập quốc tếKhách ở ngoài Việt Nam'+
'\x3Cdiv class="opt">Kiểu RAIDBảo vệ ổ cứngRAID 1RAID 10\x3C/div>'+
'\x3C/div>\x3C/div>\x3C/div>'+
'\x3Cdiv class="sum" aria-live="polite">\x3Cdiv class="sum-top">\x3Cdiv>\x3Cdiv class="lbl">Gói thuê máy chủ vật lý đề xuất\x3C/div>\x3Cdiv class="pkg" id="pkg">\x3C/div>\x3C/div>\x3Cdiv class="cnt">\x3Cdiv class="lbl">Số máy chủ\x3C/div>\x3C/div>\x3C/div>'+
'\x3Cdiv class="why" id="why">\x3C/div>\x3Cdiv class="mini" id="mini">\x3C/div>\x3Cdiv class="cmp" id="cmp">\x3C/div>\x3C/div>'+
'\x3Cdiv class="foot">\x3Cul class="notes" id="notes" hidden>\x3C/ul>'+
'Nhận báo giá thuê server cho cấu hình'+
'\x3Cdiv class="disc">Lưu ý về kết quả tư vấn: đây là gợi ý ban đầu theo quy tắc kinh nghiệm, đã cộng dự phòng tải 30% cho CPU, 25% cho RAM và 30% dung lượng trống cho ổ cứng. Nhu cầu thực tế phụ thuộc phần mềm và cách vận hành, vui lòng liên hệ để được kỹ thuật viên xác nhận cấu hình và nhận báo giá chính thức.\x3C/div>'+
'\x3Cdiv class="perks">Data Center chuẩn Tier III tại Hà Nội, TP.HCMSLA 99.99%Hỗ trợ kỹ thuật 24/7/365\x3C/div>'+
'\x3C/div>\x3C/section>\x3C/div>';
function vn(n){return Math.round(n).toLocaleString('vi-VN')}
function pickDisk(need, raid){
var i, k, usable;
if(raid==='1'){
for(i=0;i=need) return {count:2,size:DISKS[i],usable:DISKS[i],raid:'1',ok:true}; }
raid='10';
}
for(k=4;kL.max||L.min>v){self.showErr(k,'Nhập số từ '+vn(L.min)+' đến '+vn(L.max)+' '+L.unit+'.'); return;}
self.showErr(k,''); S[k]=self.snap(k,v); self.render();
});
n.addEventListener('blur',function(){
var v=Number(n.value); if(n.value===''||isNaN(v)) v=S[k];
S[k]=self.snap(k,self.clamp(k,v)); n.value=S[k]; self.showErr(k,''); self.render();
});
});
this.$('ha').addEventListener('change',function(e){S.ha=e.target.checked; self.render();});
this.$('intl').addEventListener('change',function(e){S.intl=e.target.checked; self.render();});
this.$('cta').addEventListener('click',function(){
self.dispatchEvent(new CustomEvent('dedicatedsizing:quote',{detail:{input:Object.assign({},self.state),result:self.calc()},bubbles:true,composed:true}));
});
}
clamp(k,v){var L=LIMITS[k]; return Math.min(L.max,Math.max(L.min,v));}
snap(k,v){var L=LIMITS[k]; return L.min+Math.round((v-L.min)/L.step)*L.step;}
showErr(k,msg){
var inp=this.$('n-'+k); this.$('e-'+k).textContent=msg||'';
if(msg) inp.setAttribute('aria-invalid','true'); else inp.removeAttribute('aria-invalid');
}
calc(){
var S=this.state, w=WL.filter(function(x){return x.id===S.wl})[0];
var units = w.id==='virt' ? S.vms : S.users;
var cores=Math.ceil((w.coreBase+units/w.perCore)/HEAD_CPU);
var ramRaw=w.ramBase+units*w.ramUnit+(w.id==='db'?Math.min(S.data*0.1,128):0);
var ram=Math.ceil(ramRaw/HEAD_RAM);
var iops=Math.round(units*w.iops);
var bw=Math.max(1,Math.ceil(units*w.kbps/1000));
var intl=S.intl?Math.max(1,Math.ceil(bw*INTL_SHARE)):0;
var dataEnd=S.data*Math.pow(1+S.growth/100,YEARS);
var need=Math.ceil(dataEnd*FREE_DISK+OS_GB);
var fit=PKG.filter(function(k){return k.cores>=cores && k.maxRam>=ram});
var active=1, pk=null, i;
if(fit.length){
for(i=0;i=bw){pk=fit[i];break;} }
if(!pk) pk=fit[0];
} else {
pk=PKG[2]; active=Math.max(2,Math.ceil(Math.max(cores/pk.cores,ram/pk.maxRam)));
}
var ramEach=Math.ceil(ram/active), ramRec=RAM_STEPS[RAM_STEPS.length-1];
for(i=0;i=ramEach){ramRec=RAM_STEPS[i];break;} }
ramRec=Math.min(ramRec,pk.maxRam);
var disk=pickDisk(need,S.raid);
return {w:w,units:units,cores:cores,ram:ram,ramRec:ramRec,iops:iops,bw:bw,intl:intl,need:need,dataEnd:Math.round(dataEnd),
pk:pk,active:active,total:active+(S.ha?1:0),disk:disk,bwTotal:pk.bw*active,iopsTotal:pk.iops*active};
}
render(){
var S=this.state, root=this.root, self=this, R=this.calc(), virt=S.wl==='virt';
root.querySelectorAll('.wl').forEach(function(b){var on=b.dataset.wl===S.wl; b.classList.toggle('sel',on); b.setAttribute('aria-checked',on?'true':'false');});
root.querySelectorAll('[data-raid]').forEach(function(b){b.classList.toggle('sel',b.dataset.raid===S.raid);});
this.$('row-users').hidden=virt; this.$('row-vms').hidden=!virt;
Object.keys(LIMITS).forEach(function(k){
var L=LIMITS[k], v=S[k], r=self.$('r-'+k), n=self.$('n-'+k);
r.value=v; r.style.setProperty('--pct',((v-L.min)/(L.max-L.min)*100)+'%');
if(root.activeElement!==n) n.value=v;
self.$('b-'+k).textContent=vn(v)+(L.unit==='%'?'%':' '+L.unit);
root.querySelector('.step[data-k="'+k+'"][data-d="-1"]').disabled=L.min>=v;
root.querySelector('.step[data-k="'+k+'"][data-d="1"]').disabled=v>=L.max;
});
this.$('ha').checked=S.ha; this.$('intl').checked=S.intl;
this.$('pkg').textContent=R.pk.n;
this.$('cnt').textContent=R.total+' máy'+(S.ha?' (gồm 1 dự phòng)':'');
this.$('why').textContent='Nhu cầu ước tính khoảng '+R.cores+' nhân CPU và '+vn(R.ram)+' GB RAM cho '+vn(R.units)+' '+(virt?'máy ảo':'người dùng đồng thời')+'. '+R.pk.n+' có '+R.pk.cores+' nhân mỗi máy, RAM nâng tối đa '+R.pk.maxRam+' GB, cổng mạng '+R.pk.port+'.';
var each=R.active>1?' mỗi máy':'';
var tiles=[
{k:'CPU cần / gói có',v:R.cores+' / '+(R.pk.cores*R.active)+' nhân',x:R.active>1?R.active+' máy x '+R.pk.cores+' nhân':'Intel Xeon hoặc AMD EPYC',warn:false},
{k:'RAM đề xuất'+each,v:R.ramRec+' GB DDR4 ECC',x:R.ramRec>48?'Nâng từ 48 GB kèm gói':'Dùng 48 GB kèm gói',warn:false},
{k:'Ổ cứng'+each,v:R.disk.count+' x '+vn(R.disk.size)+' GB NVMe',x:'RAID '+R.disk.raid+', dùng được '+vn(R.disk.usable)+' GB',warn:!R.disk.ok},
{k:'Dung lượng cần sau '+YEARS+' năm',v:vn(R.need)+' GB',x:'Dữ liệu dự kiến '+vn(R.dataEnd)+' GB',warn:false},
{k:'IOPS cần / gói có',v:'~'+vn(R.iops)+' / '+vn(R.iopsTotal),x:'NVMe Enterprise',warn:R.iops>R.iopsTotal},
{k:'Băng thông trong nước',v:vn(R.bw)+' / '+vn(R.bwTotal)+' Mbps',x:'Cần / kèm gói',warn:R.bw>R.bwTotal}
];
if(S.intl) tiles.push({k:'Băng thông quốc tế',v:vn(R.intl)+' / '+INTL_INCLUDED+' Mbps',x:'Cần / kèm gói',warn:R.intl>INTL_INCLUDED});
this.$('mini').innerHTML=tiles.map(function(t){return '\x3Cdiv class="m'+(t.warn?' warn':'')+'">'+t.k+''+t.v+''+t.x+'\x3C/div>'}).join('');
this.$('cmp').innerHTML=['ds1','ds2','ds3'].map(function(id){
var p=PKG.filter(function(x){return x.id===id})[0], on=p.id===R.pk.id;
return '\x3Cdiv class="c'+(on?' on':'')+'">'+p.n+(on?' (đề xuất)':'')+''+p.cores+' nhân, RAM tối đa '+p.maxRam+' GBCổng '+p.port+', băng thông '+p.bw+' Mbps trong nướcIOPS ~'+vn(p.iops)+'\x3C/div>';
}).join('');
var notes=[];
if(R.active>1) notes.push('Nhu cầu vượt quá một máy chủ lớn nhất, nên cần '+R.active+' máy chạy theo cụm (cluster) hoặc tách riêng tầng ứng dụng và database.');
if(S.ha) notes.push('Đã cộng 1 máy dự phòng. Cần thêm cân bằng tải hoặc cơ chế chuyển đổi dự phòng (failover) để tự chuyển khi một máy lỗi.');
if(!S.ha && (S.wl==='db'||S.wl==='erp')) notes.push('Hệ thống ERP và database thường quan trọng với vận hành, nên cân nhắc bật dự phòng (HA) để tránh gián đoạn khi lỗi phần cứng.');
if(R.bw>R.bwTotal) notes.push('Băng thông trong nước ước tính '+vn(R.bw)+' Mbps, cao hơn mức '+vn(R.bwTotal)+' Mbps kèm gói. Cần nâng băng thông.');
if(S.intl && R.intl>INTL_INCLUDED) notes.push('Băng thông quốc tế ước tính '+vn(R.intl)+' Mbps, gói kèm '+INTL_INCLUDED+' Mbps. Cần mua thêm băng thông quốc tế.');
if(S.raid==='1' && R.disk.raid==='10') notes.push('Dung lượng cần vượt quá ổ lớn nhất ở RAID 1, nên kết quả chuyển sang RAID 10.');
if(!R.disk.ok) notes.push('Dung lượng cần vượt quá 8 ổ NVMe trong một máy. Cần giải pháp lưu trữ mở rộng, vui lòng liên hệ để được tư vấn.');
if(S.wl==='ai') notes.push('Kết quả chỉ tính phần CPU. Nếu cần huấn luyện mô hình bằng GPU, nên kết hợp thêm dịch vụ GPU Cloud.');
if(R.ramRec>=R.pk.maxRam && R.ram/R.active>R.pk.maxRam) notes.push('RAM cần cao hơn mức tối đa của gói, cần xác nhận lại với kỹ thuật viên.');
var ul=this.$('notes'); ul.hidden=!notes.length;
ul.innerHTML=notes.map(function(t){return '\x3Cli>'+t+'\x3C/li>'}).join('');
this.dispatchEvent(new CustomEvent('dedicatedsizing:change',{detail:{input:Object.assign({},S),result:R}}));
}
}
if(!customElements.get('dedicated-sizing-calc')) customElements.define('dedicated-sizing-calc',DedicatedSizingCalc);
function mount(){
if(!document.querySelector('div.dedicated-sizing-calc') && CS && CS.parentNode){
var box=document.createElement('div'); box.className='dedicated-sizing-calc';
CS.parentNode.insertBefore(box,CS);
}
var nodes=document.querySelectorAll('div.dedicated-sizing-calc:not([data-mounted])');
for(var i=0;i