loading table of contents...

8.3.6. Elastic Social Demo Data Generator

The Elastic Social Demo Data Generator is a standalone web application that generates the following entities:

  • Comments
  • Reviews
  • Users
  • Blacklist entries

The generator simulates the online community of your website. You can, for example, simulate to have a comment written every 30 seconds and see how this affects the moderation list in the Studio plugin.

The demodata-generator web application is not started per default. To start the web application, start the es-demodata-generator-webapp or add a dependency to es-demodata-generator-component to your Preview CAE web application (Maven profile preview-cae-with-es-demodata-generator).

Once the web application is started, further control is provided either via a controller based JSP page or via manager based JMX access. Both ways provide functionality to start, stop and check the status of the generator. The JMX access enables fine grained configuration of the actual generation process.

In the demodata-generator web application, a demo data generator can be started simultaneously for each tenant.

The demo data generator initially generates a number of users (about 4000), images (about 30) and blacklist entries (about 20). Further data is generated incrementally depending on the comment generation frequency (Interval configuration property) and in relation to his value the frequency of other generated data like users, ratings, likes, etc (configuration properties ending with Rate).

Example 1: If the Interval property is 30, then a comment is generated every 30 seconds.

Example 2: If the Interval property is 30 and the NewUserRate property is 5, then a comment is generated every 30 seconds and a new user is generated each fifth iteration, that is every 5 * 30 = 150 seconds.

Additionally, some rates depend on other rates.

Example 3: If the NewUserRate property is 5 and the AnonymousUserRate property is 4, then a new anonymous user is created only if a new user is generated in this iteration, that is each 20th iteration.

See Table 8.8, “ Elastic Social Demo Data Generator configuration ” for a description of the rate properties which can be reconfigured via JMX.