|
This document looks at two schemes you can provide and charge your customers
for disk space consumption.
It can be restricted:
Individual Disk Space Quotas
Understanding Individual Disk Space Quotas
Users on Disk Quota plans are restricted by individual quotas that are
set separately for
each type of disk space consuming resources.
Every 5 minutes the system scans end user home FTP directory, mailboxes and DBs
to see how much disk space is being used and updates the disk quota usage
readings
in the user account CP. Customers can't upload more MB than
their disk quotas allow (except for My/Pg SQL db quotas),
and will get an error message if they try to do so.
If end users need more disk space, they can
increase their disk quotas,
unless quotas are MAX restricted.
Billing for Individual Disk Space Quotas
| Questions Considered: |
Charge Formulas ( ) explains when users are
charged for individual disk space quotas
and how the charges are calculated.
Setting Prices
instructs how to set prices used in formulas to calculate charges for individual disk space
quotas.
Editting Prices shows how changes in prices affect billing for individual
disk space quotas.
|
Charge Formulas
| On account activation |
| FTP/Mailbox/MS SQL DB Quotas |
My/PG SQL DB Quotas |
|
equal free MB set for the actual or default (if not explicitly set for the actual one)
billing period
and restrict customers to using it free of charge within: |
| one billing period. |
one month. |
|
If free quota is insufficient, customers can increase it prepaying: |
| recurrent fee prorated to the time left to the end of the billing
period. |
absolute recurrent fee. |
|
Since then at the beginning of each: |
| billing period |
month |
| users will be accrued absolute recurrent fee
calculated by the following formula: |
|
monthly set for the actual billing period x MB over
free |
monthly set for the actual billing period / billing period
duration in months
x MB over free |
|
* If monthly isn't set for the actual billing period, recurrent fee for the increased quota
is adjusted
to the monthly discount set for the actual billing period and is calculated by the following
formula: |
| monthly set for the default one month billing
period
x billing period duration in months x MB over free
|
monthly set for the default one month billing period
x MB over free
|
|
Customers are not refunded recurrent fees, if they haven't used up all the reserved disk space.
However, if customers reduce prepaid quotas, they are refunded: |
| the recurrent fee accrued at the beginning of the current billing period for
MB of reduced quota
prorated to the time left to the end of the current billing period. |
the absolute recurrent fee accrued at the beginning of the current month for MB of
reduced quota. |
Important:
Opposed to FTP/Mailbox/MS SQL db quotas, My/PG SQL db quotas can be exceeded.
If they are exceeded, at the end of each month
customers are accrued overlimit fee calculated by the formula: |
| N/A |
extra set for the actual billing period / billing period duration in month x MB
used over quota |
|
If extra isn't set for the actual billing period, overlimit fee is adjusted to the
extra discount
set for the actual billing period and is calculated by the following formula: |
|
extra set for the default one month billing period x MB used over quota
|
Setting Prices
- Launch plan edit wizard
- On the first step make sure to uncheck Summary Disk Usage resource
box.
- Skip Registrar Domain Pricing form, if it comes next.
- On the pricing form for the default one month billing period, set:
| Resource |
Free |
Monthly |
Extra |
- Disk space Quota
- Mailbox quota
- MS SQL Quota
|
MB you allow your customers to use within the whole billing period
by their home FTP directory and each of their mailbox and MS SQL db
free of charge. |
Price for each MB of increased quota. |
N/A |
- MySQL database quota
- PgSQL database quota
|
MB you allow your customers to use within one month
by each of their MySQL and PGSQL db free of charge.
|
Price for each MB of increased quota. |
Price for each MB consumed over db quota. |
- On the next form, you can leave these fields empty or fill them in to
calculate quota charges based on free units and prices set for the actual billing period.
Editing Prices
| Prices |
Increasing |
Decreasing |
| Free |
- won't change user disk space quotas; |
- won't allow users to upload more than their quotas, except for My/PG SQL DBs;
- won't refund recurrent fees prepaid for quota MB now available for free,
though diminish recurrent fees starting from: |
- won't stop users from uploading as much as their quotas allow;
- won't accrue any additional recurrent fees until: |
a new billing period for FTP, mailboxes and MS SQL DBs or month for My/PG SQL DBs.
* Tip: use Mass Mail to let existing users know they: |
| - can increase their disk quotas to new Free without being charged. |
- will be charged extra recurrent, unless they decrease their quotas
by the difference between old and new Free values. |
| Monthly |
New values will be used to calculate recurrent fees starting from
a new billing period for FTP, mailboxes and MS SQL DBs or month for My/PG SQL DBs.
|
Extra
* applied to My/PG SQL DB quotas only |
New values will be used to calculate overlimit fees starting from the
current month.
|
Preventing End Users from Increasing Individual Disk Space Quotas
- In your admin control panel select Plans in the Info menu.
- Click the Resource link next to the plan.
- Click the Edit icon next to the Disk Space Quota / Mailbox Quota / MySQL,
MSSQL and PGSQL DB quota resource.
- In the Max field, set the maximum allowed disk space quota in megabytes that
users under this plan can increase their quotas to.
Summary Disk Space Usage
Understanding Summary Disk Usage
On Summary Disk Usage plans customers, as opposed to Disk Quota plans,
get some free disk space for all their disk space consuming resources
which makes their initial summary disk space usage limit.
Customers are free to distribute it between their disk space consuming resources as
they wish (you don't restrict them with individual disk space quotas allowing them
to increase it for free).
Customers' used disk space on different types of servers (web, mail,
MySQL, Windows, etc.) is summarized every 24 hours
to make user's Summary Disk Usage for the last day.
Summary readings of each daily scan are added up
and the cumulative amount is divided by
days elapsed from the beginning of the billing month to make user's Average Summary Disk Usage.
At the end of the month the cumulative amount is
divided by 30.5 days and if the resulting average exceeds summary disk
usage limit, users are charged overlimit fees.
To prevent it, users can increase their summary disk space usage limit (unless it is
MAX restricted)
purchasing more summary disk space.
Billing for Summary Disk Space Usage
| Questions Considered: |
Charge Formulas ( )
explains when customers are charged for summary disk space usage and how the charges are
calculated.
Setting Prices
instructs how to set prices used in formulas to calculate charges for summary disk space usage.
Editting Prices
shows how changes in prices affect billing for summary disk space usage.
|
Charge Formulas (Summary Disk
Space Usage)
On account activation summary disk usage limit equals free MB set for
the actual or default (if not explicitly set for the actual) billing
period and restricts customers to using it free of charge within one month.
If allocated free disk space is insufficient, to prevent overlimit
charges, customers can increase summay disk usage limit.
When users change summary disk usage limit and ever since each month
they are accrued absolute recurrent fee for new disk limit calculated by the following
formula:
monthly set for actual billing period / billing period duration x MB over
free
If monthly isn't set for the actual billing period, recurrent fee for
the increased quota is adjusted to the monthly discount set for the
actual billing period and is calculated by the following formula:
monthly set for the default one month billing period x MB over free
* Recurrent fee is non-refundable if the user fails to use up all the reserved disk space.
* Whenever users decrease summary disk usage limit,
they are refunded absolute (not prorated) recurrent fee for the current month.
If customer average summary disk usage by the end of the month exceeds
summary disk usage limit, user is accrued overlimit fee calculated by the following formula:
extra set for the actual billing period / billing period duration
in
month x MB used overlimit
If extra isn't set for the actual billing period, overlimit fee is
adjusted to the extra discount set for the actual billing period and is
calculated by the following formula:
extra set for the default one month billing period x MB used over quota
Setting Prices (Summary Disk Space Usage)
- Launch plan edit wizard
- On the first step check Summary Disk Usage resource box.
- Skip Registrar Domain Pricing form, if it comes next.
- On pricing form for the default one month billing period, set:
- Free:
MB you allow your customers to use within one month
by all his disk space consuming resources combined together free of charge
- Monthly: Price for each MB of increased summary disk space
usage limit
- Extra: Price for each MB used over summary disk space usage
limit
Note: Individual disk space quotas can't be removed, because it's an obligatory system
resource.
Set free for each individual disk space quota and make sure you don't enter any prices
for them. If you do, your users are very likely to be charged twice for the same disk
space.
- On the next form, you can leave these fields empty or fill them in
to calculate summary disk space usage charges based on free units and prices
set for the actual billing period.
Editing Prices (Summary Disk Space Usage)
| Prices |
Increasing |
Decreasing |
| Free |
- won't change current user summary disk space usage limit and will still use it
(even if covered with new increased free) to calculate overlimit charges
|
|
- won't refund recurrent fees prepaid for quota MB now available for free,
though diminish recurrent fees starting from: |
- won't accrue any additional recurrent fees until: |
the next month.
* Tip: use Mass Mail to let existing users know they: |
| - can increase their summary disk space usage limit to new Free without being charged. |
- will be charged extra recurrent, unless they decrease their summary disk usage limit
by the difference between old and new Free values. |
| Monthly |
New values will be used to calculate recurrent fees starting from
a new month.
|
| Extra |
New values will be used to calculate overlimit fees starting from the
current month.
|
Preventing Users from Increasing Summary Disk Usage Limit
- In your admin control panel select Plans in the Info menu.
- Click Resource for the selected plan.
- Click Edit for the Summary Disk Usage resource.
- In the Max field, enter the maximum allowed Summary disk usage limit
value (in MBs).
Enabling Summary Disk Space Usage for Accounts Signed up before
Version 2.3
For a certain plan:
- Select Plans in the INFO menu.
- Click the name of the plan to start the Plan Edit wizard.
- Include Summary Disk Usage on the first step.
- On the subsequent steps, don't set prices for web, mail, and other disk
quotas unless you want to charge your customers twice, for disk quota
and disk usage. Instead, set prices for Summary Disk Usage.
- Log into each existing user/reseller account under this plan, go
to Account (regular user) / Info (reseller) -> Quick
Access (Left Menu design) or Control Area on the left (No Menu design)
and press the Add button next to "Disk Usage".
For all your user/reseller plans:
- Log into your control panel server as cpanel user:
su - cpanel
- Execute the SummaryQuotaUpdate class:
java psoft.hsphere.converter.SummaryQuotasUpdate --enable
- Login as root and
restart H-Sphere.
The Summary Disk Usage resource
will be added to all plans, its free units will be set to equal Free
Disk Space Quota, its monthly and usage prices will be removed.
- Enter each plan where you want to charge for Summary Disk Usage instead of
disk space quota, set prices for Summary Disk Usage and delete all disk quota prices.
Also, enter Free units for the Disk Space Quota resource.
Disabling Summary Disk Space Usage for All User/Reseller Plans
- Log into your control panel server as cpanel user:
su - cpanel
- Execute the SummaryQuotaUpdate class:
java psoft.hsphere.converter.SummaryQuotasUpdate --disable
- Login as root and
restart H-Sphere.
The Summary Disk Usage resource will be removed from all plans.
- Enter each plan and set prices for Disk Space Quota.
User Summary Disk Usage Doesn't Coincide with Actual User Home Directory Size
All files with the user's ID including those outside
user's home directory (e.g.Transfer, Referrer, Agent and Error logs
that are used for user site's statistics) are counted toward used disk space.
Besides, summary disk usage doesn't include the current day disk space consumption.
All this accounts for differences between used disk space shown by the control
panel and the actual files in user home directory.
|