installing aws on a box (logged in as su)
mkdir /tmp/awscli; cd /tmp/awscli
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
./awscli-bundle/install -i /usr/lib/aws -b /usr/bin/aws
installing aws on a box (logged in as su)
mkdir /tmp/awscli; cd /tmp/awscli
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
./awscli-bundle/install -i /usr/lib/aws -b /usr/bin/aws
<configuration> | |
<appender name="STASH-UDP" class="net.logstash.logback.appender.LogstashSocketAppender"> | |
<host>${LOGSTASH_HOST:-192.168.99.100}</host> | |
<port>${LOGSTASH_PORT:-5001}</port> | |
<customFields>{"serviceName":"sample-dcos-qbit","serviceHost":"${HOST}","servicePort":"${PORT0}","serviceId":"sample-dcos-qbit-${HOST}-${PORT0}","serviceAdminPort":"${PORT1}"}</customFields> | |
</appender> | |
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
## Setup docker repo | |
sudo apt-get install apt-transport-https ca-certificates | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
sudo touch /etc/apt/sources.list.d/docker.list | |
sudo echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" > /etc/apt/sources.list.d/docker.list | |
## Install Docker | |
sudo apt-get update | |
sudo apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual |
We are having troubles talking to Mesos DNS if our Marathon application / service has two ports.
We could use mesos consul https://hub.docker.com/r/ciscocloud/mesos-consul/ but that would require a consul cluster.
The following are instructions to install consul on dcos/mesos/coreos. This may not be the best way. Coreos does have a package manager (but we don't know how to use it). At a minimum we should script this with ansible. (We are not ansible experts either).
So far, I have been unable to get mesos-consul to work but consul is running on the mesos-masters and mesos-slaves in a special snowflake fashion.
$ dcos package install exhibitor
We recommend a minimum of three nodes with 3GB of RAM available.
Continue installing? [yes/no] yes
Installing Marathon app for package [exhibitor] version [1.0.0]
Object is not valid
got 1.0, expected 0.5 or less
got 1.0, expected 0.0
must be false
The key is that it is ok to have many logstash processes running with different input and output filters. And we need json in and json out for UDP. The non UDP/JSON versions do not seem to work with extra fields/MDC. The output encoder moving from logstash and into kibana was wrong so it would black hole all of our logs from logback.
# cat 50-udp.conf
input {
udp {
port => 5001
override fun removeArtistFromSystem(artistId: Long): Promise<Boolean> { | |
return Promises.invokablePromise { promise -> | |
val saveSystemDataPromise = Promises.promiseBoolean() | |
.catchError { e -> logger.info("removeArtistFromSystem:: unable to save system data for $artistId", e) } | |
val removeArtistFromSystemPromise = Promises.promiseBoolean() | |
.catchError { e -> logger.info("removeArtistFromSystem:: unable to remove $artistId from repo", e) } | |
Promises.all(saveSystemDataPromise, removeArtistFromSystemPromise) |
interface Config {
String getString(String path);
int getInt(String path);
float getFloat(String path);
double getDouble(String path);
long getLong(String path);
Map<String, Object> getMap(String path);
T getObject(String path, Class type);