Skip to content

Commit

Permalink
Updated documents
Browse files Browse the repository at this point in the history
  • Loading branch information
Fonoster Team committed Jun 21, 2019
1 parent d796852 commit 7b6aa23
Show file tree
Hide file tree
Showing 76 changed files with 393 additions and 0 deletions.
106 changes: 106 additions & 0 deletions docs/introduction/performance-tests/user-location.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# Routr 1.0RC3 - User Location Lookup Performance Tests

Author:
Pedro Sanders

<ol type="1">
<li>Overview</li>
<li>User Location Performance Tests</li>
<ol type="1">
<li>New registrations</li>
<li>Update registrations</li>
<li>User location lookup</li>
</ol>
<li>Conclusions</li>
<li>Notes</li>
<li>References</li>
</ol>

## Overview
### Scope

These tests were intended to show the performances of the User Location implementation in Routr 1.0RC3.
These can be useful to help you better dimension your Routr installation. For these test the login module
was deactivated. The network configuration used during the test is depicted in the following image:

[Talk or show graphical configuration of the network]

### Software

As load generator (UAC side) it was used [SIPp docker](URL) image.

[Explain the version of additional software. Include profiler and datasource]

All used SIP-related software was configured to use TCP as the transport protocol for SIP.

### Platform

[Explain the hardware used on the load generator and DUT]

Description of the elements used:

Equipment #1 - [Processor], [Memory] with [Operating system] testing.
Equipment #2 - [Processor], [Memory] with [Operating system] testing.
Equipment #x - [Processor], [Memory] with [Operating system] testing.

## Performance Tests

Routr running without any special

SIPp was used to generate [# of interaction] MESSAGE requests via Routr.
The results reflect the capacity [General or sub topic] and speed (average response time).

Flow
SIP entities definition:

UAC - [UAC]:5070
UAS - [UAS]:5070
Proxy - [PROXY_IP]:5060

SIP messages flow for one complete transaction:

```
UAC ---> MESSAGE ---> Routr ---> MESSAGE ---> UAS
UAC <--- 200 OK <--- Routr <--- 200 OK <--- UAS
```

[How many UACs were used to generate the traffic]

Configuration
SIPP command:

```bash
[Used SIPp command config ]
```

**Results**

Results reported by SIPp on the UAC servers:

| Factor | Value | Note |
|---|---|---|
| Iterations | 200000 | |
| Max concurrent requests | 70 | |
| Max allowed Rate | 10000 | requests per second |
| Average Request Rate | 8047.966 | requests per second |
| Failures | 0 | |
| Retransmissions | 0 | |
| Timeout | 0 | |
| Elapsed Time | 00:00:24:851 | 00:00:24:851 |

<br/>
<img src="/docs/assets/images/[DUT Performance Summary]" >
<br/>
<br/>

Routr config file:

```yaml
[Whatever config applies]
```

[Graphical results]

3. Conclusions
4. Notes
5. References
Binary file added libs/accessors-smart-1.2.jar
Binary file not shown.
Binary file added libs/argparse4j-0.8.1.jar
Binary file not shown.
Binary file added libs/asm-6.2.1.jar
Binary file not shown.
Binary file added libs/asm-analysis-6.2.1.jar
Binary file not shown.
Binary file added libs/asm-commons-6.2.1.jar
Binary file not shown.
Binary file added libs/asm-tree-6.2.1.jar
Binary file not shown.
Binary file added libs/asm-util-6.2.1.jar
Binary file not shown.
Binary file added libs/bson-3.7.1.jar
Binary file not shown.
Binary file added libs/caffeine-2.7.0.jar
Binary file not shown.
Binary file added libs/checker-qual-2.6.0.jar
Binary file not shown.
Binary file added libs/commons-codec-1.11.jar
Binary file not shown.
Binary file added libs/commons-io-2.6.jar
Binary file not shown.
Binary file added libs/commons-lang-2.6.jar
Binary file not shown.
Binary file added libs/commons-lang3-3.5.jar
Binary file not shown.
Binary file added libs/commons-logging-1.2.jar
Binary file not shown.
Binary file added libs/commons-net-3.6.jar
Binary file not shown.
Binary file added libs/commons-pool2-2.4.2.jar
Binary file not shown.
Binary file added libs/error_prone_annotations-2.3.3.jar
Binary file not shown.
Binary file added libs/graal-sdk-19.0.0.jar
Binary file not shown.
Binary file added libs/hamcrest-core-1.3.jar
Binary file not shown.
Binary file added libs/httpasyncclient-4.1.1.jar
Binary file not shown.
Binary file added libs/httpclient-4.5.2.jar
Binary file not shown.
Binary file added libs/httpcore-4.4.4.jar
Binary file not shown.
Binary file added libs/httpcore-nio-4.4.4.jar
Binary file not shown.
Binary file added libs/httpmime-4.5.2.jar
Binary file not shown.
Binary file added libs/icu4j-62.1.jar
Binary file not shown.
Binary file added libs/inamik-text-tables-0.1.jar
Binary file not shown.
Binary file added libs/jackson-annotations-2.9.0.jar
Binary file not shown.
Binary file added libs/jackson-core-2.9.5.jar
Binary file not shown.
Binary file added libs/jackson-databind-2.9.5.jar
Binary file not shown.
Binary file added libs/jackson-dataformat-yaml-2.9.5.jar
Binary file not shown.
Binary file added libs/jain-sip-ri-1.3.0-91.jar
Binary file not shown.
Binary file added libs/javax.activation-api-1.2.0.jar
Binary file not shown.
Binary file added libs/javax.servlet-api-3.1.0.jar
Binary file not shown.
Binary file added libs/jaxb-api-2.4.0-b180830.0359.jar
Binary file not shown.
Binary file added libs/jedis-2.9.0.jar
Binary file not shown.
Binary file added libs/jetty-client-9.4.15.v20190215.jar
Binary file not shown.
Binary file added libs/jetty-http-9.4.15.v20190215.jar
Binary file not shown.
Binary file added libs/jetty-io-9.4.15.v20190215.jar
Binary file not shown.
Binary file added libs/jetty-security-9.4.15.v20190215.jar
Binary file not shown.
Binary file added libs/jetty-server-9.4.15.v20190215.jar
Binary file not shown.
Binary file added libs/jetty-servlet-9.4.15.v20190215.jar
Binary file not shown.
Binary file added libs/jetty-util-9.4.15.v20190215.jar
Binary file not shown.
Binary file added libs/jetty-webapp-9.4.15.v20190215.jar
Binary file not shown.
Binary file added libs/jetty-xml-9.4.15.v20190215.jar
Binary file not shown.
Binary file added libs/jjwt-0.9.0.jar
Binary file not shown.
Binary file added libs/js-19.0.0.jar
Binary file not shown.
Binary file added libs/json-20160212.jar
Binary file not shown.
Binary file added libs/json-path-2.4.0.jar
Binary file not shown.
Binary file added libs/json-schema-validator-0.1.19.jar
Binary file not shown.
Binary file added libs/json-smart-2.3.jar
Binary file not shown.
Binary file added libs/junit-4.13-beta-3.jar
Binary file not shown.
285 changes: 285 additions & 0 deletions libs/jvm-npm.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,285 @@
/**
* Copyright 2014-2016 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Since we intend to use the Function constructor.
/* jshint evil: true */

module = (typeof module === 'undefined') ? {} : module;

(function () {
var System = java.lang.System;
var Scanner = java.util.Scanner;
var File = java.io.File;

NativeRequire = (typeof NativeRequire === 'undefined') ? {} : NativeRequire;
if (typeof require === 'function' && !NativeRequire.require) {
NativeRequire.require = require;
}

function Module (id, parent, core) {
this.id = id;
this.core = core;
this.parent = parent;
this.children = [];
this.filename = id;
this.loaded = false;

Object.defineProperty(this, 'exports', {
get: function () {
return this._exports;
}.bind(this),
set: function (val) {
Require.cache[this.filename] = val;
this._exports = val;
}.bind(this)
});
this.exports = {};

if (parent && parent.children) parent.children.push(this);

this.require = function (id) {
return Require(id, this);
}.bind(this);
}

Module._load = function _load (file, parent, core, main) {
var module = new Module(file, parent, core);
var body = readFile(module.filename, module.core);
var dir = new File(module.filename).getParent();
var args = ['exports', 'module', 'require', '__filename', '__dirname'];
var func = new Function(args, body);
func.apply(module,
[module.exports, module, module.require, module.filename, dir]);
module.loaded = true;
module.main = main;
return module.exports;
};

Module.runMain = function runMain (main) {
var file = Require.resolve(main);
Module._load(file, undefined, false, true);
};

function Require (id, parent) {
var core;
var native_;
var file = Require.resolve(id, parent);

if (!file) {
if (typeof NativeRequire.require === 'function') {
if (Require.debug) {
System.out.println(['Cannot resolve', id, 'defaulting to native'].join(' '));
}
native_ = NativeRequire.require(id);
if (native_) return native_;
}
System.err.println('Cannot find module ' + id);
throw new ModuleError('Cannot find module ' + id, 'MODULE_NOT_FOUND');
}

if (file.core) {
file = file.path;
core = true;
}
try {
if (Require.cache[file]) {
return Require.cache[file];
} else if (file.endsWith('.js')) {
return Module._load(file, parent, core);
} else if (file.endsWith('.json')) {
return loadJSON(file);
}
} catch (ex) {
if (ex instanceof java.lang.Exception) {
throw new ModuleError('Cannot load module ' + id, 'LOAD_ERROR', ex);
} else {
System.out.println('Cannot load module ' + id + ' LOAD_ERROR');
throw ex;
}
}
}

Require.resolve = function (id, parent) {
var roots = findRoots(parent);
for (var i = 0; i < roots.length; ++i) {
var root = roots[i];
var result = resolveCoreModule(id, root) ||
resolveAsFile(id, root, '.js') ||
resolveAsFile(id, root, '.json') ||
resolveAsDirectory(id, root) ||
resolveAsNodeModule(id, root);
if (result) {
return result;
}
}
return false;
};

Require.root = System.getProperty('user.dir');
Require.NODE_PATH = undefined;

function findRoots (parent) {
var r = [];
r.push(findRoot(parent));
return r.concat(Require.paths());
}

function parsePaths (paths) {
if (!paths) {
return [];
}
if (paths === '') {
return [];
}
var osName = java.lang.System.getProperty('os.name').toLowerCase();
var separator;

if (osName.indexOf('win') >= 0) {
separator = ';';
} else {
separator = ':';
}

return paths.split(separator);
}

Require.paths = function () {
var r = [];
r.push(java.lang.System.getProperty('user.home') + '/.node_modules');
r.push(java.lang.System.getProperty('user.home') + '/.node_libraries');

if (Require.NODE_PATH) {
r = r.concat(parsePaths(Require.NODE_PATH));
} else {
var NODE_PATH = java.lang.System.getenv().NODE_PATH;
if (NODE_PATH) {
r = r.concat(parsePaths(NODE_PATH));
}
}
// r.push( $PREFIX + "/node/library" )
return r;
};

function findRoot (parent) {
if (!parent || !parent.id) { return Require.root; }
var pathParts = parent.id.split(/[\/|\\,]+/g);
pathParts.pop();
return pathParts.join('/');
}

Require.debug = true;
Require.cache = {};
Require.extensions = {};
require = Require;

module.exports = Module;

function loadJSON (file) {
var json = JSON.parse(readFile(file));
Require.cache[file] = json;
return json;
}

function resolveAsNodeModule (id, root) {
var base = [root, 'node_modules'].join('/');
return resolveAsFile(id, base) ||
resolveAsDirectory(id, base) ||
(root ? resolveAsNodeModule(id, new File(root).getParent()) : false);
}

function resolveAsDirectory (id, root) {
var base = [root, id].join('/');
var file = new File([base, 'package.json'].join('/'));
if (file.exists()) {
try {
var body = readFile(file.getCanonicalPath());
var package_ = JSON.parse(body);
if (package_.main) {
return (resolveAsFile(package_.main, base) ||
resolveAsDirectory(package_.main, base));
}
// if no package.main exists, look for index.js
return resolveAsFile('index.js', base);
} catch (ex) {
throw new ModuleError('Cannot load JSON file', 'PARSE_ERROR', ex);
}
}
return resolveAsFile('index.js', base);
}

function resolveAsFile (id, root, ext) {
var file;
if (id.length > 0 && id[0] === '/') {
file = new File(normalizeName(id, ext || '.js'));
if (!file.exists()) {
return resolveAsDirectory(id);
}
} else {
file = new File([root, normalizeName(id, ext || '.js')].join('/'));
}
if (file.exists()) {
return file.getCanonicalPath();
}
}

function resolveCoreModule (id, root) {
var name = normalizeName(id);
var classloader = java.lang.Thread.currentThread().getContextClassLoader();
if (classloader.getResource(name)) {
return { path: name, core: true };
}
}

function normalizeName (fileName, ext) {
var extension = ext || '.js';
if (fileName.endsWith(extension)) {
return fileName;
}
return fileName + extension;
}

function readFile (filename, core) {
var input;
try {
if (core) {
var classloader = java.lang.Thread.currentThread().getContextClassLoader();
input = classloader.getResourceAsStream(filename);
} else {
input = new File(filename);
}
// TODO: I think this is not very efficient
return new Scanner(input).useDelimiter('\\A').next();
} catch (e) {
throw new ModuleError('Cannot read file [' + input + ']: ', 'IO_ERROR', e);
}
}

function ModuleError (message, code, cause) {
this.code = code || 'UNDEFINED';
this.message = message || 'Error loading module';
this.cause = cause;
}

// Helper function until ECMAScript 6 is complete
if (typeof String.prototype.endsWith !== 'function') {
String.prototype.endsWith = function (suffix) {
if (!suffix) return false;
return this.indexOf(suffix, this.length - suffix.length) !== -1;
};
}

ModuleError.prototype = new Error();
ModuleError.prototype.constructor = ModuleError;
}());
Binary file added libs/jvm-profiler-master-SNAPSHOT.jar
Binary file not shown.
Binary file added libs/log4j-1.2-api-2.11.0.jar
Binary file not shown.
Binary file added libs/log4j-1.2.17.jar
Binary file not shown.
Binary file added libs/log4j-api-2.11.0.jar
Binary file not shown.
Binary file added libs/log4j-core-2.11.0.jar
Binary file not shown.
Binary file added libs/nashorn-promise-0.1.1.jar
Binary file not shown.
Binary file added libs/regex-19.0.0.jar
Binary file not shown.
Binary file added libs/routr.jar
Binary file not shown.
Binary file added libs/slf4j-api-1.7.25.jar
Binary file not shown.
Binary file added libs/slf4j-ext-1.7.25.jar
Binary file not shown.
Binary file added libs/slf4j-nop-1.7.25.jar
Binary file not shown.
Binary file added libs/snakeyaml-1.18.jar
Binary file not shown.
Binary file added libs/spark-authentication-1.4.jar
Binary file not shown.
Binary file added libs/spark-core-2.9.0.jar
Binary file not shown.
Binary file added libs/truffle-api-19.0.0.jar
Binary file not shown.
Binary file added libs/unirest-java-1.4.9.jar
Binary file not shown.
Binary file added libs/websocket-api-9.4.15.v20190215.jar
Binary file not shown.
Binary file added libs/websocket-client-9.4.15.v20190215.jar
Binary file not shown.
Binary file added libs/websocket-common-9.4.15.v20190215.jar
Binary file not shown.
Binary file added libs/websocket-server-9.4.15.v20190215.jar
Binary file not shown.
Binary file added libs/websocket-servlet-9.4.15.v20190215.jar
Binary file not shown.
Loading

0 comments on commit 7b6aa23

Please sign in to comment.