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
standalone.xml | |
============== | |
Vim <jboss-eap-6>/jboss-7.1.1/standalone/configuration/standalone.xml | |
<subsystem xmlns="urn:jboss:domain:jmx:1.1"> | |
<show-model value="true"/> | |
<remoting-connector/> | |
</subsystem> |
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
Parameters | |
========== | |
JVM_OPTS: | |
JBOSS_OPTS: | |
-Djboss.home.dir=/d2/java/jboss-eap-6.2 ($JBOSS_HOME) | |
-Djboss.server.base.dir=/d2/java/jboss-eap-6.2/asp264005 ($JBOSS_HOME/standalone) | |
-Djboss.server.default.config=standalone.xml or -c standalone.xml |
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
Java-Profiling | |
============== | |
HEAP | |
-> | perm | young | old | | |
perm -> Dados permanentes | |
young -> Espaçco menor. Sofre muitas coletas do GC é mais rápido para executar. Não sofre compactação e os objetos são simplesmente copiados para as outras áreas. Isso torma a coleta eficiente. É dividida em S0, S1 e Eden; Onde o S0 e S1 são áreas temporárias de objetos; A EDEN é onde os objetos são criados pela primeira vez. | |
old -> Espaçco maior e poucas coletas e o GC é mais demorada. | |
GC (Garbage Collector) is a form of automatic memory management. The garbage collector, or just collector, attempts to reclaim garbage, or memory occupied by objects that are no longer in use by the program. |
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
DevOps | |
====== | |
Gene Kim, autor do livro The Phoenix Project, realizou um debate com Steven Witkop, John Skovron e Elis Booker sobre | |
como plataforma como serviço (PaaS) se encaixa no processo de DevOps. Elis Booker ajudou a discussão com perguntas | |
sobre DevOps, derrubando mitos sobre nuvens privadas e como começar a utilizá-las. | |
Gene Kim descreveu a teoria das restrições e suas aplicação em DevOps; também indicou restrições em desenvolvimento de | |
software que, segundo ele, devem ser abordadas em sequência: | |
Provisionamento de ambientes/implantação; |
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
Example to install MySQL driver on DataSource JBoss EAP 6 | |
========================================================= | |
First we will create a new module. A module in this sense is a package of classes that will be available to all our application through your JBoss node. This is a big differences compared with older JBoss version where all deployed archive where directly available to other deployed application when deployed in the deployment root folder. | |
You find module in $JBOSS_HOME/modules folder. To create a new module you need to do three things: | |
1 - Create a folder hierarchy for files. | |
$ mkdir -p $JBOSS_HOME/modules/com/mysql/main | |
2 - Copy module jar files. |
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
MySQL Machine | |
============= | |
- COMMANDS | |
mysqladmin -u root -p create prime | |
mysql -uroot -p -e "GRANT ALL PRIVILEGES ON prime.* TO ’prime’@’%’ IDENTIFIED BY ’prime’;" | |
mysql -u root -p -e "SHOW DATABASES" | |
mysql -u loja -p loja_schema -e "select database(), user()" |
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
Kubernetes | |
========== | |
Based on CoreOS: CoreOS is a powerful Linux distribution built to make large, scalable deployments on varied infrastructure simple to manage. | |
- etcd: A toll to manage these clusters, CoreOS uses a globally distributed key-value store called etcd to pass configuration data between nodes. | |
- fleet: A tool to schedule and manage applications across the entirety of the cluster. | |
Based on Docker: Docker is a containerization system that utilizes LXC, also known as Linux containers, and uses kernel namespacing and cgroups in order to isolate processes. | |
Kubernetes, at its basic level, is a system for managing containerized applications across a cluster of nodes. |
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
Docker | |
====== | |
https://docs.docker.com/v1.4/articles/systemd/ | |
Architecture: | |
- /var/lib/docker: (config containers) | |
- /var/lib/docker/containers: (stated containers) | |
- /var/lib/docker/graph: (commited images) |
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
COMMANDS RHEL 7 | |
=============== | |
=> SYSTEMCTL | |
systemctl list-units --type=service | grep running | |
systemctl list-units --type=service | grep failed | |
systemctl list-units --type=service | |
systemctl stop postfix.service |
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
Nginx | |
===== | |
NGINX is more then just a high performance web server, it is loaded with features. Here are just some of the features available: | |
Support for multiple protocols: HTTP, HTTPS, SPDY, WebSocket, IMAP, POP3, SMTP | |
Caching | |
Compression | |
SSL Termination: TLSv1.1/TLSv1.2/SSL/SNI/PFS/PCI-DSS and OCSP Stapling | |
HTTP video streaming with MP4/FLV/HDS/HLS |
OlderNewer