They should work. Works for all cores of your host system. Also you can download ESXi from here.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat ~/bin/rails-start | |
#!/usr/bin/bash | |
cd ~/git/foreman | |
rm log/development.log | |
export DISABLE_SPRING=1 | |
export NOTIFICATIONS_POLLING=999999 | |
be puma -b 'tcp://0.0.0.0' -p 3000 #-w 1 | |
#rails s -b '0.0.0.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~/hammer-cli-katello | |
bundle install | |
bundle exec bash | |
cd ~ | |
wget https://partha.fedorapeople.org/devel/hammer.tgz | |
tar zxf hammer.tgz | |
ll .hammer # verify there's stuff in that dir | |
cd hammer-cli-katello | |
hammer ping |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change Foreman's logging gem settings to log the full logger name instead of just the first 3 characters | |
# config/logging.yaml#L94 | |
:pattern: "%d [%.1l|%c|%.8X{request}] %m\n" | |
# Log the line, file, and method that calls logger.debug (useless because it's always method_missing): | |
log_trace: true # can also use %F, %L, %M in the pattern now |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add to your ~/.bashrc, then run source ~/.bashrc | |
# virsh-snapshot-create mybox mysnap | |
# Run in forklift directory | |
function virsh-snapshot-create { | |
vagrant halt $1 | |
virsh snapshot-create-as forklift_$1 $2 | |
vagrant up $1 | |
} |
cd ~/foreman
echo "gem 'byebug'" >> bundler.d/katello.local.rb
bundle install
- create and add the following to
config/initializers/byebug.rb
require 'byebug/core'
if Rails.env.development?
Byebug.start_server 'localhost', ENV.fetch("BYEBUG_SERVER_PORT", 1048).to_i
end
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function kill_servers { | |
# kill node server | |
kill -9 $(ss -tulpn | grep 3808 | awk '{ print $7}' | awk -F'[=|,]' '{ print $3 }') 2> /dev/null | |
#kill rails server | |
if [ -f /home/vagrant/foreman/tmp/pids/server.pid ]; then | |
kill -9 $(cat /home/vagrant/foreman/tmp/pids/server.pid) | |
fi | |
} | |
https://serverfault.com/questions/226982/how-to-measure-req-sec-by-analyzing-apache-logs
This great article helped me a lot...
I had created a set of prepered commands that I am using to analyze apache log:
Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry session
Debugger
sudo systemctl restart postgresql rh-mongodb34-mongod qdrouterd qpidd squid pulp_resource_manager pulp_streamer foreman-proxy pulp_celerybeat pulp_workers tomcat httpd puppetserver
NewerOlder