Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...Edit User Account and Azure SQL CPU at 100%Edit User Account and Azure SQL CPU at 100%
Previous
 
Next
New Post
3/10/2016 1:24 PM
 
I looked at the MS page you linked to. It's not clear to me that a DTU really is a database transaction or is some other proxy measure.

It mentions 'operations that are typical for a OLTP request'. So it's not clear to me what any of this truly means.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
3/10/2016 7:37 PM
 

Richard,

If you go into the "dirty details" of the benchmark used it seems the bottom-line is on this page - https://azure.microsoft.com/en-us/doc... :

"The number of users is determined by the database size (in scale-factor units). There is one user for every five scale-factor units. Because of the pacing delay, one user can generate at most one transaction per second, on average.

For example, a scale-factor of 500 (SF=500) database will have 100 users and can achieve a maximum rate of 100 TPS. To drive a higher TPS rate requires more users and a larger database."

So a basic tier SQL Azure database can sustain 5 users at 720MB. A standard tier (S0) can sustain 10 users at 1 GB.

Then based on transactions completed the tiers are rated on transactions per unit of time.

Basic = Transactions per hour 80th percentile at 2.0 seconds
Standard = Transactions per minute 90th percentile at 1.0 seconds

Today I added a banner of Google Ads to one of my pages.  That resulted in the DTU/CPU% shooting up to 60% and several SQL Database Driver errors indicating a problem loading the banner module which then ended with a HTTP 502 Gateway error.  Within a minute the site recovered and the DTU/CPU went down to less than 5%.  But that one spike essentially brought the entire site to its knees.  And the admin account was tagged to the errors, so not due to a guest or user access. 

Tonight I am boosting the pricing level of the database from Basic to Standard which provides 10 DTUs and 250GB. I do not need the extra storage space so will leave the size at 2GB. In case others might want to know - supposedly you can change the pricing level online without any disruption in online access to the database. Tonight I will find out if that is true.

 

 
New Post
3/11/2016 2:19 PM
 

So last night I changed the pricing/service level of the database from Basic to Standard S0.  Once I could see the upgrade had finished and the portal dashboard showed the database was using S0 with 10DTUs,  I logged in as a superuser and went to edit an unauthorized user account.  While I did this I monitored the DTU/CPU %.  This time with the database in standard S0 with 10DTUs, the % went up to 40% instead of 100%.  However, the front-end took about 42 seconds to server up the dialog.  And then there were a series of 1.5 and 1 minute long requests showing up about 10 minutes later while the database was showing 20% CPU. I checked the event viewer and saw there were several scheduler errors indicating a database connection issue about that time.  So I am not sure if possibly something was still being done to the database due to the upgrade or what?  I clear the cache and recycled the application and things seemed to settle down after that. 

In the end, I do think the limits of my Azure SQL plan combined with the database needs of DNN 7.4.2 are resulting in a some database performance issues.  This might be due to my taking a 5.6.8 through the upgrade process to 7.4.2. Perhaps a clean install would be different?  I did find a series of posts that point to issues with Azure SQL performance but most of those were with really large and highly transactional systems that had undergone a migration.  Some indicated updating indexes on views and tables helped.

I am now really busy with content production for my site, so I do not have time to dig deeper into this at this time.  If anyone does and can offer any tips, I would appreciate that help.  Thanks!

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...Edit User Account and Azure SQL CPU at 100%Edit User Account and Azure SQL CPU at 100%


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out