Newsfeeds

Block Formatter

New Drupal Modules - 17 October 2017 - 9:02am

-- SUMMARY --

If you would like to render a block in an entity reference field, this is the module for you!

-- REQUIREMENTS --

You must have the block, block_content and entity_reference core modules installed.

-- INSTALLATION --

* Install as usual as per http://drupal.org/node/895232.

-- USAGE --

Categories: Drupal

Gangs of Britannia Board Game Up On Kickstarter

Tabletop Gaming News - 17 October 2017 - 9:00am
Organized crime has a long and storied history in Britain. I mean, just watch a Guy Richie movie and you’ll know that. (whywouldIwantacaravanthataintgotnofookinwheelsonit?) In Gangs of Britannia, you’ll be in charge of one of those gangs, looking to expand your influence and take over more turf. But it’s not going to be easy, as everyone […]
Categories: Game Theory & Design

New techniques boost performance of non-volatile memory systems

Virtual Reality - Science Daily - 17 October 2017 - 8:00am
Computer engineering researchers have developed new software and hardware designs that should limit programming errors and improve system performance in devices that use non-volatile memory technologies.
Categories: Virtual Reality

Mischief Media Card Game Coming To Kickstarter

Tabletop Gaming News - 17 October 2017 - 8:00am
I certainly hope that you find TGN a reputable news source. I do my best to not post rumors and only give you stories that I can back up with a source. However, with news, that’s not always the case. Some places are better sources than others, and who you trust can change over time. […]
Categories: Game Theory & Design

VRDC 2017 takeaways: VR music for the game composer - by Winifred Phillips

Gamasutra.com Blogs - 17 October 2017 - 7:16am
Strategies for implementing music in VR projects were offered during the Virtual Reality Developers Conference this year. Video game composer Winifred Phillips discusses tools and tips from these talks, while also sharing insights from her own projects.
Categories: Game Theory & Design

Design approach in citizen science games, until EVE Online - by Claire Baert

Gamasutra.com Blogs - 17 October 2017 - 7:16am
I discussed with developers and scientists their approach to design citizen science games. The conversation revealed some issues that the game industry could help solve.
Categories: Game Theory & Design

Day 26 of 100 Days of VR: Adding Missing Audio, UI, and Creating Enemy Victory State - by Josh Chang

Gamasutra.com Blogs - 17 October 2017 - 7:12am
Welcome back to day 26! We just finished implementing our Enemy Spawning System, but before we move on to the next thing, I would like to go and fix/update some minor things that we glimpsed over such as: audio, ui, and enemy victory state,
Categories: Game Theory & Design

Using aesthetics to create well-being - by Julien Delavennat

Gamasutra.com Blogs - 17 October 2017 - 7:08am
Artworks such as books, music, games, can affect our state of mind, and by doing so, can teach us ways to feel and think differently. Cognitively, knowing more ways to feel and think lets us actively choose how to feel about the world, it gives us control
Categories: Game Theory & Design

Working with generic room-based matchmaking - by Joost van Dongen

Gamasutra.com Blogs - 17 October 2017 - 7:07am
Most major platforms offer similar generic room-based matchmaking. In this post I explore how they work and discuss the pros and cons of using these systems instead of building your own from scratch, based on our experience developing Awesomenauts.
Categories: Game Theory & Design

Confessions of a Non-Neurotypical Person - by Ramin Shokrizade

Gamasutra.com Blogs - 17 October 2017 - 7:07am
A recent Guardian article suggests that industry, at a strategic level, is warming to the idea of utilizing non-neurotypical workers. Intolerance is still the norm in the workplace, with improved understanding key to success and harmony.
Categories: Game Theory & Design

Dissecting Design -- Star Control 2 - by Josh Bycer

Gamasutra.com Blogs - 17 October 2017 - 7:07am
Each week, Game Design Analyst Josh Bycer takes a look at a game's design in a special video. For this week, it's the amazing Star Control 2.
Categories: Game Theory & Design

Pathfinder Battles: Maze of Death Figures Now Available

Tabletop Gaming News - 17 October 2017 - 7:00am
When I’m playing an RPG, I like to have the right miniature on the board to represent what the PCs are fighting. And I know my PCs like to have a mini that as closely as possible represents their character. As such, it’s always good to have more options available. And that’s what we’re getting […]
Categories: Game Theory & Design

Drupal Modules: The One Percent: Drupal Modules: The One Percent —Timelogin (video tutorial)

Planet Drupal - 17 October 2017 - 6:47am
Drupal Modules: The One Percent —Timelogin (video tutorial) NonProfit Tue, 10/17/2017 - 08:47 Episode 40

Here is where we seek to bring awareness to Drupal modules running on less than 1% of reporting sites. Today we'll look at Timelogin, a module which restricts users, based on role, from logging in during certain times of the day.

Categories: Drupal

Melbourne International Games Week - The Lead-Up - by Meredith Hall

Gamasutra.com Blogs - 17 October 2017 - 6:46am
Melbourne International Games Week (and PAX Aus) is upon us. My team at Ultimerse is about to dive into it for the very first time with our upcoming release, Paperville Panic.
Categories: Game Theory & Design

How to Streamline Your QA Process - by Karl VonGlahn

Gamasutra.com Blogs - 17 October 2017 - 6:01am
This article explores a few common problems that can delay the internal QA process.
Categories: Game Theory & Design

Fantasy Flight Games Announces Star Wars: Destiny Draft Packs

Tabletop Gaming News - 17 October 2017 - 6:00am
I haven’t played a collectable game in quite some time. Mostly I’ve just not had the time to keep up with them. But back when I did, my favorite format to play in was draft. It’s seat-of-your-pants gaming. You go in not knowing what your deck was going to consist of and leave it to […]
Categories: Game Theory & Design

The Nostalgic Gamer And An Industry That Indulges Them - by Renisa Barnwell

Gamasutra.com Blogs - 17 October 2017 - 5:24am
The Nostalgic Gamer And An Industry That Indulges Them, nearly 20,000 listings for the retro console went up on eBay at double (sometimes triple) the original price.
Categories: Game Theory & Design

Appnovation Technologies: Appnovator Spotlight: Paulo Gomes

Planet Drupal - 17 October 2017 - 3:35am
Appnovator Spotlight: Paulo Gomes Who are you? What's your story? My name is Paulo Gomes, I am from Portugal and moved to the UK with my wife in 2016 to join Appnovation crew. I am an tech and web enthusiast since the 90's (so not too old and not too young), I graduated in Computers and Management in 2002, after that worked in many places and companies, as freelancer, trainer and t...
Categories: Drupal

Dropsolid: Load testing Drupal with Blazemeter and JMeter

Planet Drupal - 17 October 2017 - 2:59am
17 Oct Load testing Drupal with Blazemeter and JMeter Niels A Tech

When going live with a big project, it is all about reassuring the client that the project will be able to handle all those excited visitors. To achieve that state of zen, it is paramount that you do a load test. The benefits of load tests go beyond peace of mind, however. For example, it enables you to spot issues that only happen during high load or let’s you spot bottlenecks in the infrastructure setup. The added bonus is that you can bask in the glory of your high-performance code - on the condition the test doesn’t fail, of course.

Need help with your load and performance testing?
Contact us 

 

When doing a load test it is important to do the following steps:

  • Analyse existing data
  • Prepare tests
  • Set up tools
  • Run the tests
  • Analyse the results

 

Analyse existing data

If you are in luck, you will already  have historic data available to use from Google Analytics. If this isn’t the case, you’ll have to get in touch with your client and ask a few to-the-point questions to help you estimate all the important metrics that I’ll be covering in this post.

 

A couple of tips I can give if you lack the historic data:

  • Ask if the client has a mailing (digital or old-school) list and how many people are on it
  • If you have made comparable sites in the past, look at their Google Analytics data
  • Ask the client how they are going to announce their new website
  • When you are working on an estimate, it is always better to add an extra 15% to it. Better safe than sorry!

The first thing you need to do, is set a reference frame. Pick a date range that has low activity as well as the highest activity you can find. Then start putting that data into a spreadsheet, as pictured below:

You can download an example copy of the file here

 

The most important metrics we are going to calculate are:

  • Peak concurrent user (Hourly sessions x Average sessions Duration / 3600)
  • Peak page views per second

 

The values you need to find or estimate are:

  • Peak daily page views
  • Peak hourly page views
  • Total page view for period
  • Peak hourly sessions
  • Total amount of sessions
  • Average session duration in seconds

As you can see, we mainly focus on the peak activity, because you test with the worst-case scenario in mind - which is, funnily enough, usually the best-case scenario for your client.

Before we start preparing our test, it is also handy to check which pages receive the most traffic. This benefits the validity of your test scenario.

 

Prepare the tests

For our tests we are going to start out with Apache JMeter, which you can grab here.

With JMeter you can test many different applications/server/protocol types, but we’re going to use it to make a whole lot of HTTP requests.

Make sure you have the required Java library and go boot up the ApacheJMeter.jar file.

 

Adding and configuring a Thread Group

Start by adding a Thread Group to your test plan by right clicking your Test plan and selecting Add > Threads (Users) > Thread Group

 

Eventually you will need to fill in the number of (concurrent) users and ramp-up period based on your analysis, but for now keep it low for debugging your test.

 

Adding and configuring User-Defined Variables

Then right click the thread group to add User Defined Variables (Add > Config Element > User Defined Variables).

Add two variables named url and protocol and assign them a value.

Using these user-defined variables makes it easy to choose another environment to test on. It avoids the painstaking and error-prone work of finding all references and changing them manually.

You can use these variables in input fields in your test by doing this: ${url} or ${protocol}

 

Adding and configuring HTTP config elements

 Next up, you need to add the following HTTP config elements to your thread group:

  • HTTP Request Defaults
  • HTTP Header Manager
  • HTTP Cookie Manager

On the first one, you use your variables to fill in the protocol and the server name.

On the second one, you can set default headers for each one of your requests. See the screenshot below for what I’ve put in default.

For the third one, you only select cookie policy: standard.

 

A simple page request sampler

Right-click your test again and add the HTTP request sampler (Add > Sampler > HTTP Request).

Here we are going to call the home page. The only things you need to set here are:

  • Method: GET
  • Path: /

We don’t fill in the protocol or server name because this is already covered by our HTTP Request Defaults.

 

Posting the contact form

In this one we are going to submit the contact form (which is located at www.example.com/contact), so add another HTTP Request like we did before. Now only fill in the following values:

  • Method: POST
  • Path: /contact
  • Follow redirects: True
  • Use KeepAlive: True

In order for Drupal to accept the submit, we need to add some parameters to our post, like this:

The important ones here are form_build_id and form_id. You can manually get the form id because it always stays the same. The form build ID can vary, so we need to extract this from the page. We’ll do this using the CSS/JQuery Extractor (right-click your HTTP Request sampler: Add > Post Processors > CSS/JQuery Extractor)

Configure it like the screenshot below:

It will now get that form_build_id from the page and put into a variable the sampler can use.$

 

Posting some Ajax on the form

Imagine our contact form has some Ajax functionality and we also want to test this. The way we go about it is identical to posting the regular form like we did before. The only difference is the post parameters, the path and an extra HTTP Header Manager.

You should set the path in your sampler to: /system/ajax

Then right click your sampler to add your new HTTP Header Manager (Add > Config Element > HTTP Header Manager). Configure it like shown in the screenshot:

  Saving the results of your test

Now that we’ve configured samplers, we need to add some listeners. You can add these listeners everywhere, but in our example we’ve added it to the test in a whole.

 

We’ll add three listeners:

  • View Results in Table:
    • Show every request in a table format
    • Handy for getting some metrics like latency and connect time
  • Simple Data Writer:
    • Writes test data to a file
    • Handy for debugging when using Blazemeter (check out this link)
    • Just load the file into the View Results Tree
  • View Results Tree:
    • It shows you the actual response and request.
    • Uses a lot of resources (so only good for debugging)

 

There is a lot more you can do with JMeter. You can read all about it here.


Test-run the test

Now that we’ve configured our test it is time to try it out. So make sure not to put too much concurrent users in there. Just run the test by pressing the green ‘Play’ icon.

If you get errors, debug them using the feedback you got from your listeners.

As this wise man once said: "Improvise. Adapt. Overcome."

After you’ve validated your test, it’s always handy to turn up the concurrent users until your local site breaks. It’ll give you a quick idea of where a possible bottleneck could be.

Just a small warning: doing that load test on your local machine (running the test and the webserver) will take up a lot of resources and can give you skewed results.

You can download an example here.

 

Set up tools Load testing with Blazemeter

When you have a project that will have a lot of concurrent users, your computer is most likely not able to handle doing all those calls and that is why it is good to test from a distributed setup like Blazemeter does.

 

You can have multiple computers running the same test with only a part of the concurrent users or you can pay for a service like Blazemeter.

 

The downside of using multiple computers is that they still use the same corporate WiFi or ethernet, blocking yourself possibly to the lowest common denominator, which is most likely unknown and could cause trouble that might skew your test. On top of that you will also have to aggregate all those results yourself, costing you precious time.

 

For us the mayor benefits of Blazemeter are the following:

  • Simulate a massive amount of concurrent users with little hassle
  • Persistence of test results and comparison between tests
  • Executive report to deliver to a technical savvy client
  • Sandbox mode tests that don’t count against your monthly testing quota

 

Adding your JMeter test in Blazemeter is very easy and straightforward. Just click ‘Create Test’ in the menu and select JMeter Test.

Upload the file and you can start to configure your test to reflect your test scenario from the analysis chapter. We suggest to choose to ‘Originate a load’ from a service that is closest to your target population.

Before you run your test, it is important to have set up your monitoring of the environment you want to test.

 

Monitoring performance

At Dropsolid, we like to use New Relic to monitor performance of our environments but you could also use open source tools like Munin.

The most important factors in your decision of monitoring tool should be:

  • Persistence of monitoring data
  • Detail of monitoring data
  • Ease of use

If you are using New Relic, we recommend to install both APM and Server. The added value of having APM is that you can quickly get an overview of possible bottlenecks in PHP and MySQL.

 

Run the test

Now that everything is set up, it is important to have an environment that is a perfect copy of your production environment. That way you can easily optimize your environment without having to wait for a good moment to restart your server.

Run your test, sit back and relax.

 

Analyse the results

If everything has gone according to plan, you should now have reports from both Blazemeter and New Relic.

Blazemeter report of a test of 854 concurrent usersNew Relic monitoring during the same test

If your server was able to handle the peak amount of users, then your job is done and you can inform the client that they can rest assured that it won’t go down.

If your server couldn’t handle it, it is time to compare the results from Blazemeter and New Relic to find out where your bottleneck is.

Common issues are the following:

  • Not the right memory allocation between parts of the stack.
  • Misconfiguration of your stack. For example, MySQL has multiple example configuration files for different scenarios
  • Not using extra performance enhancing services like varnish, memcache, redis,...
  • Horrible code

If the issue is horrible code, then use tools like xhprof or blackfire.io to profile your code.

Need expert help with your performance tests? Just get in touch!

Contact us for performance testing 


Final note

As Colin Powell once said: "There are no secrets to success. It is the result of preparation, hard work and learning from failure." That is exactly what we did here: we prepared our test thoroughly, we tested our script multiple times and adapted when it failed.

Categories: Drupal

GraphQL Twig

New Drupal Modules - 17 October 2017 - 2:02am
Categories: Drupal

Pages

Subscribe to As If Productions aggregator