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

[vagrant] use fedora 26 #540

Merged
merged 5 commits into from
Jan 10, 2018
Merged

[vagrant] use fedora 26 #540

merged 5 commits into from
Jan 10, 2018

Conversation

mikz
Copy link
Contributor

@mikz mikz commented Jan 5, 2018

Change Vagrant box from CentOS to Fedora so we can use the latest tooling.
For development it makes sense to use latest profiling tooling like eBPF, perftools, SystemTap, ...
In centos all those tools are quite ancient because of the 3.11 kernel.

  • support for running/testing with different openresty binaries
  • install cpan dependencies inside vagrant
  • run redis inside vagrant
  • respect APICAST_DIR
  • performance tune nginx config
  • link all tools from openresty systemtap toolkit

@mikz mikz changed the title Improve profiling in vagrant [wip] Improve profiling in vagrant Jan 5, 2018
@mikz mikz force-pushed the vagrant-valgrind branch from e500077 to ea1c015 Compare January 8, 2018 17:18
@mikz mikz force-pushed the vagrant-valgrind branch from ea1c015 to 2167cd3 Compare January 8, 2018 18:16
@mikz mikz changed the title [wip] Improve profiling in vagrant [vagrant] use fedora 26 Jan 8, 2018
@mikz mikz requested a review from davidor January 8, 2018 18:30
@@ -82,7 +82,9 @@ _LUA_
$bin = $lua_file;
}

my @resty_args = ();
my $nginx = $ENV{TEST_NGINX_BINARY} || $ENV{APICAST_OPENRESTY_BINARY} || 'openresty';
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason why TEST_NGINX_BINARY has preference over APICAST_OPENRESTY_BINARY ?

We are doing the opposite in https://github.com/3scale/apicast/blob/25009f6e3f6029931066aa1c0737d70014a00570/gateway/src/apicast/cli/command/start.lua#L100

Also, it might be worth it to extract the method that selects the binary to a place where the cli and this bin can call it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, will make it the same.

@davidor
Copy link
Contributor

davidor commented Jan 8, 2018

What's the reason to change from centos to fedora? Would be good to include in the commit or the PR description.

@mikz mikz force-pushed the vagrant-valgrind branch from 2167cd3 to b27e234 Compare January 9, 2018 11:34
@mikz
Copy link
Contributor Author

mikz commented Jan 9, 2018

@davidor updated the description. Main reason is outdated profiling toolchain on CentOS.

* use rsync
* install perl dependencies
* install redis
* use Fedora
@mikz mikz force-pushed the vagrant-valgrind branch from b27e234 to 73c209d Compare January 9, 2018 11:35
mikz added 3 commits January 9, 2018 12:38
so we can run against custom nginx binaries like openresty-asan
JSON::WebToken does not work with OpenSSL 1.1
@mikz mikz force-pushed the vagrant-valgrind branch from 73c209d to 12c72f5 Compare January 9, 2018 11:38
@mikz mikz requested a review from davidor January 9, 2018 11:39
@mikz mikz merged commit 9984344 into master Jan 10, 2018
@mikz mikz deleted the vagrant-valgrind branch January 10, 2018 14:14
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