Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added first stress tests and improve test scripts #1018

Merged
merged 7 commits into from
Sep 8, 2017

Conversation

jcague
Copy link
Contributor

@jcague jcague commented Aug 29, 2017

Description

This adds the first stress tests. And I continued refactoring the scripts somehow to improve test readability.

  • It needs and includes Unit Tests

Changes in Client or Server public APIs

Not needed.

[] It includes documentation for these changes in /doc.

@jcague jcague changed the title [WIP] Added first stress tests and improve test scripts Added first stress tests and improve test scripts Sep 8, 2017
Copy link
Contributor

@lodoyun lodoyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This should be helpful :).
In comments just some minor cosmetic/QoL changes.

return getLicodeInstance().stopLicode();
describe('Default Licode Configuration', function() {
beforeEach(function() {
test = Object.assign({}, BASIC_TEST);
Copy link
Contributor

@lodoyun lodoyun Sep 8, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For readability, and maybe for future things, I'd consider passing the test configuration (BASIC_TEST) as a parameter in runTestWith

@@ -11,6 +11,7 @@ log4j.appender.A1.layout.ConversionPattern=%d - %p [%t] %c - %m%n

log4j.logger.DtlsTransport=WARN
log4j.logger.LibNiceConnection=WARN
log4j.logger.NicerConnection=WARN
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

numberOfInstances: 2,
imageId: 'ami-2ff3e756',
numberOfInstances: 1 + TOTAL_SPINE_SERVERS,
imageId: 'ami-ebfce892',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider making the AWS ami ID a env variable just like the others


const LICODE_RUN_COMMAND =
'sudo docker run --name licode --log-driver none \
--network="host" \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 to network="host"

return this._execCommand('sudo yum update -y')
.then(() => this._execCommand('sudo sh -c \'echo "root hard nofile 65536" >> /etc/security/limits.conf\''))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jcague jcague merged commit ee4f012 into lynckia:master Sep 8, 2017
@jcague jcague deleted the add/first_performance_tests branch September 8, 2017 15:29
Arri98 pushed a commit to Arri98/licode that referenced this pull request Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants