Skip to content

Instantly share code, notes, and snippets.

View simon-jouet's full-sized avatar

Simon Jouet simon-jouet

View GitHub Profile
swarm-listener:
image: dockerflow/docker-flow-swarm-listener
networks:
- proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DF_NOTIFY_CREATE_SERVICE_URL=http://proxy:8080/v1/docker-flow-proxy/reconfigure,http://loadbalancer-listener/v1/service/add
- DF_NOTIFY_REMOVE_SERVICE_URL=http://proxy:8080/v1/docker-flow-proxy/remove,http://loadbalancer-listener/v1/service/remove
- DF_NOTIFY_CREATE_NODE_URL=http://loadbalancer-listener/v1/node/add
# Experiument setup
Two machines with Intel 6700K Skylake at 4GHz, 32GB of DDR4 at 3GHz and Intel X710 quad port 10G NIC.
Running Linux Kernel 4.4.3 with 8 * 1G hugepages
Both hosts are interconnected with two SFP+ cables on port 0 and 1.
Both experiments are executed after a clean reboot
# Experiment 1: uio_pci_generic
## Forwarding Machine
@simon-jouet
simon-jouet / angularjs Cometd
Created January 16, 2013 00:11
Cometd factory for angularjs
factory('cometd', function($rootScope) {
var cometd = $.cometd;
// Configure cometd
cometd.configure({
url: location.protocol + '//' + location.host + config.contextPath + '/cometd',
logLevel: 'info'
});
// Add a listener for the handshake *TODO* what should be done if message fails ?