Ansible Samples
- System Check Samples
https://github.com/openstack/openstack-ansible/blob/master/tests/roles/bootstrap-host/tasks/main.yml
https://github.com/kohsuke/winsw/blob/master/doc/installation.md
At current stage, JRE is not tested
1 | <service> |
Put the winsw-2.1.0-bin.exe under the folder of nifi root folder, change the name to nifi.exe
Use windows shell command line , run nifi.exe install to install the service
1 | nifi.exe install |
https://www.youtube.com/watch?v=CZ3wIuvmHeM
Hystrix –
FIT (Fault Injection Testing)
Critical Microservices — increase the availability
Client Libraries — simplified lib
CAP Theorem: In the presence of a network partition, you must choose between consistency and availability
Netflix’s solution: Eventually Consistency (tech stack: Cassandra)
Infrastructure
multi-region strategy
Stateless service
Stateful service
EVCache
https://web.mit.edu/kerberos/dialogue.html
http://www.xuebuyuan.com/748249.html
漏洞: 服务器无法知道解密的票根结果是否正确
Trying to use other boxes and changed the default location for .vagrant.d to avoid security limitation (by default under current domain user) by,
set VAGRANT_HOME=somewhereelse
Then, run command to add other boxes (32bit)
http://www.vagrantbox.es/
Vagrant
Workarount the proxy
https://runefs.com/2014/11/28/setting-up-vagrant-behind-a-corporate-proxy/
VERR_VMX_NO_VMX
Vagrant conflict with Hyper-V on windows 10, disable Hyper-V before vagrant up
https://myaccount.google.com/lesssecureapps
To retrieve the certificate from gmail pop server.
1 | openssl s_client -host pop.gmail.com -port 995 -prexit -showcerts |
Then save each of the certs as separate .cer or .pem file and import into the truststore.
1 | mqsisetdbparms TESTNODE_Rachel -n gmailtestaccount -u myemailaddress@gmail.com -p mygmailpassword |
http://www.alphadevx.com/a/491-Running-two-MongoDB-instances-on-one-server
on red hat, the service config is
/usr/lib/systemd/system
https://severalnines.com/blog/turning-mongodb-replica-set-sharded-cluster
1 | mvn deploy:deploy-file \ |
1 | curl -v -u admin:admin123 --upload-file slashbin-1.0-1.x86_64.rpm \ |
1 | curl -v -F r=releases -F hasPom=false -F e=rpm -F g=com.github.diegopacheco.sandbox.devops -F a=fpmtest -F v=2.0 -F p=rpm -F file=@slashbin-1.0-1.x86_64.rpm -u admin:admin123 http://127.0.0.1:8081/nexus/service/local/artifact/maven/content |
1 | connect system/password; |
the password that you entered during the installation.
create user username identified by ‘password’;
and also to give this user some privileges for creating tables, views and so on . .
1 | grant dba,resource, connect to username; |