Pages: 4/21 First page Previous page 1 2 3 4 5 6 7 8 9 10 Next page Final page [ View by Articles | List ]

《诸侯》的刀片服务器

[不指定 2009/04/27 18:38 | by askwan ]
4.30 诸侯 内测
一上来就不同凡响
这刀片机器四四方方的 好“正点”啊
Open in new window
HP08年推出的一款新型刀片机器 ProLiant BL2x220c G5.

印象中,用刀片服务器的公司越来越多了,刀片服务器价格低,能耗低,占用机柜空间小等优势
这张IDC的报告图则更直观的显示了未来刀片服务器市场的走势,以后搞就搞“一箱子“机器吧
省得一台一台的折腾了 哈
Open in new window
Tags: , ,
很早就看到yahoo性能团队的这篇文章
http://developer.yahoo.com/performance/rules.html

逢今日再读,仍旧令人拍案叫绝,若大中型网站,特别是以静态内容为主的网站,能做到其十之八九,
那我想访问响应性能速度定能提升几个档次。

这段时间 自觉需要好好学习研究一下这些方法 希望将来尽力用得上
然而这个必然需要需要前端开发工程师,程序开发设计人员和系统运维相关人员通力合作才行

顺便做个自己的土笔记 留以后备忘。

大致从文章看下来说 这篇文章中一共34种方法 分为7个类别

分别是
1.Content  
2.Server
3.Cookie
4.Css
5.Javascript
6.Image
7.Mobile

几乎牵涉到了网站前端的方方面面 实为猛料!

这上34种实践方法 如下 :
  1. Make Fewer HTTP Requests
  2.     
  3. Use a Content Delivery Network
  4.     
  5. Add an Expires or a Cache-Control Header
  6.     
  7. Gzip Components
  8.     
  9. Put Stylesheets at the Top
  10.     
  11. Put Scripts at the Bottom
  12.     
  13. Avoid CSS Expressions
  14.     
  15. Make JavaScript and CSS External
  16.     
  17. Reduce DNS Lookups
  18.     
  19. Minify JavaScript and CSS
  20.     
  21. Avoid Redirects
  22.     
  23. Remove Duplicate Scripts
  24.     
  25. Configure ETags
  26.     
  27. Make Ajax Cacheable
  28.     
  29. Flush the Buffer Early
  30.     
  31. Use GET for AJAX Requests
  32.     
  33. Post-load Components
  34.     
  35. Preload Components
  36.     
  37. Reduce the Number of DOM Elements
  38.     
  39. Split Components Across Domains
  40.     
  41. Minimize the Number of iframes
  42.     
  43. No 404s
  44.     
  45. Reduce Cookie Size
  46.     
  47. Use Cookie-free Domains for Components
  48.     
  49. Minimize DOM Access
  50.     
  51. Develop Smart Event Handlers
  52.     
  53. Choose <link> over @import
  54.     
  55. Avoid Filters
  56.     
  57. Optimize Images
  58.     
  59. Optimize CSS Sprites
  60.     
  61. Don't Scale Images in HTML
  62.     
  63. Make favicon.ico Small and Cacheable
  64.     
  65. Keep Components under 25K
  66.     
  67. Pack Components into a Multipart Document
下面 就是过段时间一个一个做个测试 ! 能用的要尽量用上。

TCP_Wrappers的语法格式

[不指定 2009/04/01 15:19 | by askwan ]
   TCP_Wrappers和iptables是linux下最重要的两个安全方面的项目,不容忽视,反复测试后发现TCP_Wrappers的/etc/hosts.allow 和/etc/hosts.deny 是不支持CIDR方式的写法的(如192.168.0.0/24, 172.16.0.0/16等)!
某些文章和资料书籍里面有这种写法是错误的,要注意了。
  
  其写法支持如
1.   .askwan.com
包括askwan.com自身以及 其下所有子域名

2. 192.168.
包括192.168. 下的所有ip

3. 10.10.0.0/255.255.0.0

4. ALL
包括系统所有daemon 和所有IP段

5. userX@askwan.com
指示某个域名主机里某个特定用户

6. EXCEPT 语法
例如: 要求192.168.0.0/255.255.255.0 下的除了 192.168.0.100 之外的机器可以使用sshd服务,那么可以写为
sshd:192.168.0.0/255.255.255.0 EXCEPT 192.168.0.100      

一点补充内容:
    TCP_Wrappers可以使用系统中的twist 和 spawn 记录和追踪来访者的信息,以作为系统安全日志分析
,有几个常用变量可以使用

%a    Client address
%h    Client host name
%A    Host address
%H    Server host name
%c    Client information
%p    Process ID
%d    Process name
%s    Server information


GPT (GUID Partition Table)

[不指定 2009/03/29 13:26 | by askwan ]
       Linux早可以支持大于2T的块设备(Large Block Device),但是分区的时候却不能用常见的fdisk工具了,一定要用的话,会有下面的警告信息:
Quotation
[root@host2001 data]# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          33      265041   83  Linux
/dev/sda2              34       12781   102398310   83  Linux
/dev/sda3           12782       14056    10241437+  82  Linux swap / Solaris

WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdc: 2500.1 GB, 2500140728320 bytes
255 heads, 63 sectors/track, 303958 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes


上面提示fdisk工具不支持GPT,得使用另一个GNU发布的强大分区工具parted
官方链接:http://www.gnu.org/software/parted/index.shtml
若强制用fdisk分区,最后大于2T的部分系统会不能认出来!

而GPT,比较权威的解释是:
Quotation
In computer hardware, GUID Partition Table (GPT) is a standard for the layout of the partition table on a physical hard disk. It is a part of the Extensible Firmware Interface (EFI) standard proposed by Intel as a replacement for the PC BIOS, one of the few remaining parts of the original IBM PC. EFI uses GPT whereas BIOS uses a Master Boot Record (MBR)

下面的图说明了其结构:
Open in new window
要详细了解这家伙,这篇文章或许可以帮助你:http://developer.apple.com/technotes/tn2006/tn2166.html

关于parted的用法和信息可以参看GUN专门文档:http://www.gnu.org/software/parted/manual/parted.html
就不演示了。今天正好碰到一客户遇到的这个问题,记下来给准备使用大于2T块设备的l网友一点提示。
Tags: , , ,
Pages: 4/21 First page Previous page 1 2 3 4 5 6 7 8 9 10 Next page Final page [ View by Articles | List ]