查看 Dreamhost 服务器上的网站数量
网址:http://dreamhost.ajaxeye.com/blog/65/
[转载自网络]
所有的共享主机商都在 overselling, Dreamhost 大概是被批评的最多的一个。关于 overselling, 我真的不相信有哪个共享主机商不这样做,因为每一个新增的用户对主机带来的压力是未知的,有可能这个用户会把主机拖垮,但更大的可能,新增的这个用户像我一样,只是建个小小的 Blog, 对带宽对 CPU 都不会增加什么压力。主机商是商人,两者之间多数会选择往主机上多增加几个用户,同时抱希望于这些用户不会拖垮主机。
Dreamhost 自己说的,shared hosting 是他们的衣食父母 (Bread and Butter), 其实他们在共享主机方面做的也还算是不错了,提供的许多功能都是其它共享主机商所不具备的。当然如果你的应用是 CPU intensive 的那肯定是玩不转的,毕竟价钱摆在那里,永远不要奢望买到价钱以外的东西。
现在回到题目,既然 Dreamhost 在 overselling, 那它到底 oversell 的有多厉害呢?无法去获得每台服务器上有多少个网站在运行,但可以从服务器的用户数量去猜个大概。Dreamhost 允许每个账号创建 75 个用户,那么看看主机上有多少个用户,大概也对 Dreamhost 的 oversell 有个初步的了解。
在 Shell 下运行:
1120 就是我所在的服务器 goober 上用户的数量,这里包括了 SSH 用户和 FTP 用户。考虑到一般 FTP 用户不会给服务器带来太多的压力,我把他们从结果中去除,只看 SSH 用户的数量。[goober]$ grep -i /home/ /etc/passwd | wc -l
1120
我所在的这台服务器上有 361 个 SSH 用户,这是一个不小的数字了,假设每个 SSH 用户对应一个网站,这台服务器 host 了 361 个网站。但经验告诉我,真正的数量肯定不止 361 个。原因有二,一是不是每个 SSH 用户都只有一个网站;二是,不是每个有网站的用户都是 SSH 用户,很多合租的人只用 FTP 账户的。[goober]$ grep -i /home/ /etc/passwd | grep /bin/.*sh$ | wc -l
361
那么我的结论是,我所在的这台服务器上起码有 361 个网站,我觉得数量不算少了,奇怪的是我并没有感觉速度慢或者是 downtime 比较多,可能是我的运气比较好。怪不得 hhalloyy 整天抱怨自己的那台服务器总是 down 掉,看来他的邻居要么太多,要么有人不乖的说,呵呵。
你在用 Dreamhost 吗?你所在的主机上有多少个用户呢?大家都来说说吧!
本文相关评论|Comments
silkroad online gold not realizing that just getting into a car would never quite be the same for me again. I quickly noticed that my gas 3)gauge was registered on empty so I pulled into a nearby convenience store to buy $2.00 worth of gas.kamas dofusLOTR Gold "I'll be back in two minutes," I yelled at Sharon as I closed the door. But instead, those two minutes changed my life forever. dofus kamas Entering the convenience store was like entering the 4)twilight zone. On the outside I was a healthy, athletic, pre-med student, but on the inside I was just another statistic of a violent crime. I thought I was entering an empty store,
but suddenly I realized it was not empty at all. Three robbers were in the process of committing a robbery and my entrance into the store caught them by surprise. One of the criminals immediately 5)shoved a .38 6)caliber handgun to my head, ordered me to the cooler, pushed me down on the floor, and pumped a bullet into the back of my head - execution style. He obviously thought I was dead because he did not shoot me again. The 7) trio of thieves finished robbing the store and left calmly. Meanwhile, Sharon wondered why I had not returned. After seeing the three men leave the store she really began to worry as I was the last person she saw entering the store. She quickly went inside to look for me, but saw no one-only an almost empty cash register containing one check and several pennies. Quickly she ran down each aisle shouting, "Mike, Mike!" fly for fun penya Just then the 8) attendant appeared from the back of the store shouting,flyff penya "Lady, get down on the floor. I've just been robbed and shot at!" Sharon quickly dropped to the floor screaming,
buy flyff gold"Have you seen my boyfriend? He has 9)auburn hair." The man did not reply but went back to the cooler where he found me choking on my vomit.flyff money The attendant quickly cleaned my mouth and then called for the police and an ambulance. ffxi gil Sharon was in shock. She was beginning to understand that I was hurt, but she could not begin to comprehend or imagine the severity of my injury. Final Fantasy XI gil When the police arrived they immediately called the 10)homicide division as they did not think I would survive and the 11)paramedic reported that she had never seen a person so severely wounded survive.buy ffxi gil At 1:30 a.m. my parents who lived in Houston, were awakened by a telephone call from Brackenridge Hospital advising them to come to Austin as soon as possible for they feared I would not make it through the night. But I did make it through the night and early in the morning the 12)neurosurgeon decided to operate.
However, he quickly informed my family and Sharon that my chances of surviving the surgery were only 40/60. If this were not bad enough, the neurosurgeon further shocked my family by telling them what life would be like for me if I 13)beat the odds and survived. He said I probably would never walk, talk, or be able to understand even simple commands. My family was hoping and praying to hear even the slightest bit of encouragement from that doctor. Instead, his pessimistic words gave my family no reason to believe that I would ever again buy Warhammer gold
be a productive member of society.Warhammer gold But once again I beat the odds and survived the three and a half hours of surgery. Granted, I still could not talk,buy Warhammer gold my entire right side was paralyzed and many people thought I could not understand, but at least I was stable. After one week Warhammer gold in a private room the d
wow 发布了如上评论 | Nov 27, 2008
wow 发布了如上评论 | Nov 27, 2008
1545
[escobar]$ grep -i /home/ /etc/passwd | grep /bin/.*sh$ | wc -l
457
leek 发布了如上评论 | Nov 16, 2008
[******]$ grep -i /home/ /etc/passwd | wc -l
697
[******]$ grep -i /home/ /etc/passwd | grep /bin/.*.sh$ | wc -l
257
dreamhost 发布了如上评论 | Mar 29, 2008