分类目录归档:运维

hetzner cloud 静态ip设置

auto eth0
iface eth0 inet static
address
netmask 255.255.255.255
gateway 172.31.1.1
pointopoint 172.31.1.1
dns-nameservers 213.133.98.98 213.133.99.99 213.133.100.100

iface eth0 inet6 static
address
netmask 64
gateway fe80::1

reference:
https://docs.hetzner.com/cloud/servers/static-configuration/

webnx dedicated server benchmark 2

这是一款US$99的套餐,主板是永擎W480D4U

[[email protected] ~]# bash bench.sh
----------------------------------------------------------------------
CPU model : Intel(R) Xeon(R) W-1270 CPU @ 3.40GHz
Number of cores : 16
CPU frequency : 800.000 MHz
Total size of Disk : 1177.6 GB (1.7 GB Used)
Total amount of Mem : 63875 MB (618 MB Used)
Total amount of Swap : 32063 MB (0 MB Used)
System uptime : 0 days, 0 hour 19 min
Load average : 0.02, 0.11, 0.10
OS : CentOS 7.8.2003
Arch : x86_64 (64 Bit)
Kernel : 3.10.0-1127.el7.x86_64
----------------------------------------------------------------------
I/O speed(1st run) : 836 MB/s
I/O speed(2nd run) : 875 MB/s
I/O speed(3rd run) : 878 MB/s
Average I/O speed : 863.0 MB/s
----------------------------------------------------------------------
Node Name IPv4 address Download Speed
CacheFly 205.234.175.175 98.2MB/s
Linode, Tokyo2, JP 139.162.65.37 20.7MB/s
Linode, Singapore, SG 139.162.23.4 12.3MB/s
Linode, London, UK 176.58.107.39 19.6MB/s
Linode, Frankfurt, DE 139.162.130.8 16.3MB/s
Linode, Fremont, CA 50.116.14.9 90.5MB/s
Softlayer, Dallas, TX 173.192.68.18 45.8MB/s
Softlayer, Seattle, WA 67.228.112.250 45.1MB/s
Softlayer, Frankfurt, DE 159.122.69.4 5.71MB/s
Softlayer, Singapore, SG 119.81.28.170 8.78MB/s
Softlayer, HongKong, CN 119.81.130.170 10.0MB/s
----------------------------------------------------------------------

[[email protected] ~]# curl -s wget.racing/nench.sh | bash
-------------------------------------------------
nench.sh v2019.07.20 -- https://git.io/nench.sh
benchmark timestamp: 2020-10-22 09:15:20 UTC
-------------------------------------------------

Processor: Intel(R) Xeon(R) W-1270 CPU @ 3.40GHz
CPU cores: 16
Frequency: 800.000 MHz
RAM: 62G
Swap: 31G
Kernel: Linux 3.10.0-1127.el7.x86_64 x86_64

Disks:
nvme0n1 1.1T SSD

CPU: SHA256-hashing 500 MB
1.037 seconds
CPU: bzip2-compressing 500 MB
CPU: AES-encrypting 500 MB
0.558 seconds

ioping: seek rate
min/avg/max/mdev = 24.7 us / 92.6 us / 3.04 ms / 38.1 us
ioping: sequential read speed
generated 13.9 k requests in 5.00 s, 3.39 GiB, 2.78 k iops, 694.4 MiB/s

dd: sequential write speed
1st run: 776.29 MiB/s
2nd run: 823.02 MiB/s
3rd run: 822.07 MiB/s
average: 807.13 MiB/s

IPv4 speedtests
your IPv4: 216.18.208.xxxx

Cachefly CDN: 98.35 MiB/s
Leaseweb (NL): 17.43 MiB/s
Softlayer DAL (US): 41.25 MiB/s
Online.net (FR): 17.72 MiB/s
OVH BHS (CA): 26.84 MiB/s

No IPv6 connectivity detected
-------------------------------------------------

[[email protected] ~]# smartctl --all /dev/nvme0n1p1
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-3.10.0-1127.el7.x86_64] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number: INTEL SSDPE2ME012T4
Serial Number: CVMD7392006A1P2WGN
Firmware Version: 8DV10171
PCI Vendor/Subsystem ID: 0x8086
IEEE OUI Identifier: 0x5cd2e4
Controller ID: 0
Number of Namespaces: 1
Namespace 1 Size/Capacity: 1,200,243,695,616 [1.20 TB]
Namespace 1 Formatted LBA Size: 512
Local Time is: Thu Oct 22 03:17:00 2020 MDT
Firmware Updates (0x02): 1 Slot
Optional Admin Commands (0x0006): Format Frmw_DL
Optional NVM Commands (0x0006): Wr_Unc DS_Mngmt
Maximum Data Transfer Size: 32 Pages

Supported Power States
St Op Max Active Idle RL RT WL WT Ent_Lat Ex_Lat
0 + 25.00W - - 0 0 0 0 0 0

Supported LBA Sizes (NSID 0x1)
Id Fmt Data Metadt Rel_Perf
0 - 512 0 2
1 - 512 8 2
2 - 512 16 2
3 - 4096 0 0
4 - 4096 8 0
5 - 4096 64 0
6 - 4096 128 0

=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 26 Celsius
Available Spare: 100%
Available Spare Threshold: 10%
Percentage Used: 1%
Data Units Read: 66,027,611 [33.8 TB]
Data Units Written: 158,014,789 [80.9 TB]
Host Read Commands: 2,511,863,862
Host Write Commands: 4,072,213,574
Controller Busy Time: 240
Power Cycles: 26
Power On Hours: 16,086
Unsafe Shutdowns: 20
Media and Data Integrity Errors: 0
Error Information Log Entries: 0

Error Information (NVMe Log 0x01, max 64 entries)
No Errors Logged

NVME-SSD的通电时间16,086小时,感觉比较差,凑合着用吧,感觉运气不太好

天下武功唯快不破–使用流量中转技术提高网速

最近学会了nat小鸡透过haproxy中转流量,网速提高了不少。这个技术实在是牛逼,这些数据中心的QOS比家宽不知道高到哪里去了,用起来实在是爽,哈哈哈!而且nat小鸡一般卖的很便宜,30块钱一个月也就一杯喜茶的钱。以后搬家买房都不必过多考虑宽带运营商的问题了,中转一下就OK了。前几天还傻傻地办了一条电信的100M,花了1000多,实在是傻。其实年初的时候我已经会通过nginx中转流量了,但是当时用的是阿里云。阿里云的流量有点贵。但是nat小鸡实在是便宜。

除了上面提到的haproxy和nginx,还可以用iptables中转流量。

vultr 挂载 block storage

今天登录一个VPS发现存储的数据都消失了,想起来前几天无意重启了该VPS,猜测block storage重启后需要重新挂载,挂载命令如下:
mount /dev/vdb1 /home/

也可以设置开机自动挂载:
vim /etc/fstab
/dev/vdb1 /home ext4 defaults 0 0

phoenixnap開戶經歷

第一次在phoenixnap開戶是幾個月以前,當時拒絕了我的開戶申請,讓我發ID,發了護照以後又拒絕了,我當時很生氣。現在回顧一下,當時注冊的方法的確很有問題,當時用的是代理ip和假地址,這樣在phoenixnap的系統後臺很可能被判定為fraud order。

第二次用的是真實地址了,第二天sale給我打電話錯過了,就又失敗了。

第三次是上周,用真實地址和真實ip,先在webpage上和Sale聊了一下,基本上就是説下服務器用途,本來覺得又會失敗,然後Sale打電話過來了,尬聊了4分鐘,我的口語實在是差,爲難老外了,然後sale批准了賬戶,用paypal付款就搞定了。

簡單來説就是要先在web上在綫聊下,説下開戶理由,然後注冊的ip和地址資料什麽的要匹配,不能用代理ip,注冊完后要和sale通個電話,完全不會英語肯定是不行的,然後就是paypal付款了,paypal賬戶和注冊phoenixnap的賬戶郵箱要一直,避免被人家的系統風控。最後感覺phoenixnap的生意可能也一般般,所以現在比較容易開戶吧。

phoenixnap dedicated server benchmark

这是一款 E-2276G (010120)套餐的dedicated server, 月费105USD, 主板品牌是supermicro,型号是SYS-5039MC-H12TRF, 机房是Phoenix Node 1

[[email protected] ]#  (curl -s wget.racing/nench.sh | bash; curl -s wget.racing/nench.sh | bash) 2>&1 | tee nench.log
-------------------------------------------------
nench.sh v2019.07.20 -- https://git.io/nench.sh
benchmark timestamp:    2020-08-04 10:07:22 UTC
-------------------------------------------------

Processor: Intel(R) Xeon(R) E-2276G CPU @ 3.80GHz
CPU cores: 12
Frequency: 861.169 MHz
RAM: 62G
Swap: 31G
Kernel: Linux 3.10.0-1062.el7.x86_64 x86_64

Disks:
nvme0n1 931.5G SSD

CPU: SHA256-hashing 500 MB
0.887 seconds
CPU: bzip2-compressing 500 MB
CPU: AES-encrypting 500 MB
0.548 seconds

ioping: seek rate
min/avg/max/mdev = 22.1 us / 140.5 us / 2.97 ms / 65.5 us
ioping: sequential read speed
generated 14.7 k requests in 5.00 s, 3.58 GiB, 2.93 k iops, 733.2 MiB/s

dd: sequential write speed
1st run: 777.24 MiB/s
2nd run: 740.05 MiB/s
3rd run: 773.43 MiB/s
average: 763.58 MiB/s

IPv4 speedtests
your IPv4: 184.95.39.xxxx

Cachefly CDN: 15.87 MiB/s
Leaseweb (NL): 9.01 MiB/s
Softlayer DAL (US): 30.79 MiB/s
Online.net (FR): 15.18 MiB/s
OVH BHS (CA): 29.77 MiB/s

No IPv6 connectivity detected
-------------------------------------------------

-------------------------------------------------
nench.sh v2019.07.20 -- https://git.io/nench.sh
benchmark timestamp: 2020-08-04 10:08:09 UTC
-------------------------------------------------

Processor: Intel(R) Xeon(R) E-2276G CPU @ 3.80GHz
CPU cores: 12
Frequency: 888.769 MHz
RAM: 62G
Swap: 31G
Kernel: Linux 3.10.0-1062.el7.x86_64 x86_64

Disks:
nvme0n1 931.5G SSD

CPU: SHA256-hashing 500 MB
0.891 seconds
CPU: bzip2-compressing 500 MB
CPU: AES-encrypting 500 MB
0.547 seconds

ioping: seek rate
min/avg/max/mdev = 21.6 us / 138.6 us / 2.71 ms / 47.3 us
ioping: sequential read speed
generated 14.4 k requests in 5.00 s, 3.51 GiB, 2.88 k iops, 718.9 MiB/s

dd: sequential write speed
1st run: 739.10 MiB/s
2nd run: 755.31 MiB/s
3rd run: 752.45 MiB/s
average: 748.95 MiB/s

IPv4 speedtests
your IPv4: 184.95.39.xxxx

Cachefly CDN: 16.94 MiB/s
Leaseweb (NL): 10.96 MiB/s
Softlayer DAL (US): 28.83 MiB/s
Online.net (FR): 15.80 MiB/s
OVH BHS (CA): 29.55 MiB/s

No IPv6 connectivity detected
-------------------------------------------------
[[email protected] ]#  smartctl --all /dev/nvme0n1p1
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-3.10.0-1062.el7.x86_64] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org</code>

=== START OF INFORMATION SECTION ===
Model Number: INTEL SSDPE2KX010T8
Serial Number: PHLJ006501CB1P0FGN
Firmware Version: VDV10131
PCI Vendor/Subsystem ID: 0x8086
IEEE OUI Identifier: 0x5cd2e4
Total NVM Capacity: 1,000,204,886,016 [1.00 TB]
Unallocated NVM Capacity: 0
Controller ID: 0
Number of Namespaces: 1
Namespace 1 Size/Capacity: 1,000,204,886,016 [1.00 TB]
Namespace 1 Formatted LBA Size: 512
Namespace 1 IEEE EUI-64: 5cd2e4 1f68240100
Local Time is: Tue Aug 4 06:11:00 2020 EDT
Firmware Updates (0x02): 1 Slot
Optional Admin Commands (0x000e): Format Frmw_DL NS_Mngmt
Optional NVM Commands (0x0006): Wr_Unc DS_Mngmt
Maximum Data Transfer Size: 32 Pages
Warning Comp. Temp. Threshold: 70 Celsius
Critical Comp. Temp. Threshold: 80 Celsius

Supported Power States
St Op Max Active Idle RL RT WL WT Ent_Lat Ex_Lat
0 + 25.00W - - 0 0 0 0 0 0

Supported LBA Sizes (NSID 0x1)
Id Fmt Data Metadt Rel_Perf
0 + 512 0 2
1 - 4096 0 0

=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 34 Celsius
Available Spare: 100%
Available Spare Threshold: 10%
Percentage Used: 0%
Data Units Read: 16,186 [8.28 GB]
Data Units Written: 37,828 [19.3 GB]
Host Read Commands: 182,341
Host Write Commands: 260,938
Controller Busy Time: 0
Power Cycles: 4
Power On Hours: 179
Unsafe Shutdowns: 2
Media and Data Integrity Errors: 0
Error Information Log Entries: 0
Warning Comp. Temperature Time: 0
Critical Comp. Temperature Time: 0

Error Information (NVMe Log 0x01, max 64 entries)
No Errors Logged

点评: 刚用没有太多感受,phoenixnap家的IPMI不能自己挂载iso,必须要发TK让客服挂载,有点麻烦,不过客服的响应速度还是可以的。系统感觉没有WEBNX家的好用。但是还是很便宜的,内存给的多,additional ip也不贵。SSD感觉比WEBNX的那个1.2T的NVME SSD差点。