Difference between revisions of "VPS Resources"
(→Storage configuration) |
(→Windows 2008) |
||
Line 82: | Line 82: | ||
#Add the two counters Physical Disk Average Disk Bytes Read and Physical Disk Average Disk Bytes Write, click OK. | #Add the two counters Physical Disk Average Disk Bytes Read and Physical Disk Average Disk Bytes Write, click OK. | ||
#Right click on the Data Collector Set you created and click start. Let run for 24hrs approximately then right click and click stop. | #Right click on the Data Collector Set you created and click start. Let run for 24hrs approximately then right click and click stop. | ||
+ | #Browse to the directory where the data log was created, email or send the file to our support team. | ||
+ | |||
+ | ====Windows 2003==== | ||
+ | |||
+ | Start, Run, type perfmon and click OK. | ||
+ | |||
+ | #Remove any existing counters, select them all and press the DEL key. | ||
+ | #Expand "Performance and Counters" | ||
+ | #Click the "Add Counters" sign to add specific counters, Performance Object: Physical Disk, Total_ | ||
+ | #*Physical Disk:Reads/sec | ||
+ | #*Physical Disk:Writes/sec | ||
+ | #*Physical Disk:Write Disk Queue | ||
+ | #NOTE the location of the log file. Click on the “Log files” tab and click on the "Configure" button, specify a different location (OPTIONAL) for the log file. Type of file should always be Binary. | ||
+ | #Schedule the task to run for 24hrs approximately. | ||
#Browse to the directory where the data log was created, email or send the file to our support team. | #Browse to the directory where the data log was created, email or send the file to our support team. | ||
[[Category:VPS]] | [[Category:VPS]] |
Revision as of 14:53, 5 June 2013
Components
Custom components can be installed on your VPS with hostek.com, we do not supply the components however if your VPS is managed we can install them with the necessary installation keys and information to download the components.
Component installation
For Windows
- Our servers are 64bit by default, for 32bit components on non-managed VPS accounts will require "Enable 32bit Applications: TRUE" to be set within the Application Pool in IIS for the specific site using the component.
For Linux
- Ensure compatibility by checking with the vendor before hand, our Linux servers by default are installed with 64bit CentOS, with Cpanel(easy apache).
Domain limits
Questions: How many domains can I put on one VPS server?
The number of domains that can be hosted greatly depends on the type of work the server has to do for your application (ie website). For example if we break down the usage into processes we can easily see how the answer to this question depends on many factors, however most times optimizations can greatly increase the capabilities of a VPS without requiring upgrades.
Typical server resources include:
- CPU
- RAM
- Disk I/O
- Bandwidth
Typical services used:
- Web Server (Apache or IIS)
- DB Server (MySQL or MSSQL)
- Mail Server (Exim or SmarterMail)
- Application Server (ColdFusion, Railo, PHP)
Each service will use a combination of the resources and services to "serve" the application to the internet. The optimal configuration would utilize as much caching (database results) and optimized static files (txt, html, css, images). In addition limiting the number of outbound calls to external resources for generating site content is important. The difference between a site utilizing caching, optimized files and scheduled import of exernal resources may be from 10 to 100% better performance.
The key is optimization, a site fully optimized would likely run into a bandwidth limit before server resource usage would ever be an issue. See the examples below of bandwidth limitation for 3mbps sustained traffic, while VPS servers allow "bursting" which is periodic spikes:
- Google (search results page) approx 2KB, can serve 11,250 results in one minute @ 3mbps or 37,500 new visitors @ 10mbps (burst).
- Yahoo (home page results) approx 200KB, can serve 112.5 new visitors in one minute @3mbps or 375 new visitors @ 10mbps (burst).
The key to serving you can see from the example above is optimizing content. A media rich website is going to utlize many more resources both bandwidth and other thus it will handle much less than a mostly text based website.
Checklist for optimizing applications for maximum server performance:
- Are the images on my website optimized?
- Is an Expires or a Cache-Control Header being utilized?
- Are all possible queries being cached in memory?
- Are the tables being used in queries with the "where" clause indexed?
- Are CSS, JS and other TXT resources compressed using server side (Gzip) compression?
- Are JavaScript and CSS Minified?
- Are the number of HTTP requests visitors have to make minimized?
Recommendations: GENERAL GUIDELINES
This information is meant to help give an example based on average site usage, not all sites or use cases will fit into these generalized suggested solutions.
- Traffic usage between 0-300GB, minimal requirements (not ColdFusion), Basic VPS can handle 30 websites.
- Traffic usage between 0-300GB, minimal requirements (with ColdFusion), Silver VPS can handle 20 websites.
- Traffic usage between 300-1000GB, medium requirements (not ColdFusion), Silver VPS can handle 50 websites.
- Traffic usage between 300-1000GB, medium requirements (with ColdFusion), Enterprise VPS can handle 50 websites.
- Traffic usage between 1000-3000GB+, large requirements (no ColdFusion), Enterprise VPS can handle 250 websites.
- Traffic usage between 1000-3000GB+, large requirements (with ColdFusion), Virtual Dedicated can handle 200 websites.
Storage configuration
Disks in our storage arrays are configured at RAID 50. Several factors must be considered when choosing a RAID level. Besides the obvious of read and write performance, one must consider usable disk space, fault tolerance, rebuild time in the event of disk failure, and degraded performance in the event of disk failure (degraded performance refers to the performance of the storage array while a rebuild is taking place after a disk failure). We feel RAID 50 gives us the best mix of these.
Determining Disk I/O
It may be necessary to determine the average disk I/O when researching a solution for your infrastructure:
Windows 2008
The Average Reads and Writes per second of the disk for 24hrs. Here's how to get this:
- Open the server, click Start, type Perfmon in the search, click search glass to go.
- In Perfmon expand Data Collector Sets, User Defined, right click and create a new named set.
- Select the set you created, in the right panel click to select the "System Monitor Log" and right click to select properties.
- Add the two counters Physical Disk Average Disk Bytes Read and Physical Disk Average Disk Bytes Write, click OK.
- Right click on the Data Collector Set you created and click start. Let run for 24hrs approximately then right click and click stop.
- Browse to the directory where the data log was created, email or send the file to our support team.
Windows 2003
Start, Run, type perfmon and click OK.
- Remove any existing counters, select them all and press the DEL key.
- Expand "Performance and Counters"
- Click the "Add Counters" sign to add specific counters, Performance Object: Physical Disk, Total_
- Physical Disk:Reads/sec
- Physical Disk:Writes/sec
- Physical Disk:Write Disk Queue
- NOTE the location of the log file. Click on the “Log files” tab and click on the "Configure" button, specify a different location (OPTIONAL) for the log file. Type of file should always be Binary.
- Schedule the task to run for 24hrs approximately.
- Browse to the directory where the data log was created, email or send the file to our support team.