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
type: release | |
name: cei_deploy | |
version: 0.1 | |
description: Common Execution Infrastructure Services | |
ion: 0.0.1 | |
apps: | |
# dependencies | |
- name: bootstrapper1 |
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
--- a/pyon/util/sflow.py | |
+++ b/pyon/util/sflow.py | |
@@ -90,7 +90,7 @@ class SFlowManager(object): | |
res = resource.getrusage(resource.RUSAGE_SELF) | |
# build and send counter structure | |
- csample = { 'counters_sample': { | |
+ csample = { 'counter_sample': { | |
'app_name': str(self._container.id), | |
'app_resources': { |
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
startDatagram ================================= | |
datagramSourceIP 127.0.0.1 | |
datagramSize 428 | |
unixSecondsUTC 1343154826 | |
datagramVersion 5 | |
agentSubId 100000 | |
agent 10.28.212.105 | |
packetSequenceNo 3 | |
sysUpTime 64000 | |
samplesInPacket 1 |
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
Index: src/Linux/Makefile | |
=================================================================== | |
--- src/Linux/Makefile (revision 317) | |
+++ src/Linux/Makefile (working copy) | |
@@ -15,10 +15,6 @@ | |
ifeq ($(JSON),) | |
JSON=yes | |
endif | |
-ifeq ($(JSON),yes) | |
- CFLAGS+=-DHSF_JSON |
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
ubuntu@ip-10-29-159-207:/tmp/host-sflow$ make | |
cd src/sflow; make | |
make[1]: Entering directory `/tmp/host-sflow/src/sflow' | |
gcc -D_GNU_SOURCE -DSTDC_HEADERS -O3 -DNDEBUG -Wall -Wcast-align -I. -c sflow_agent.c | |
gcc -D_GNU_SOURCE -DSTDC_HEADERS -O3 -DNDEBUG -Wall -Wcast-align -I. -c sflow_sampler.c | |
gcc -D_GNU_SOURCE -DSTDC_HEADERS -O3 -DNDEBUG -Wall -Wcast-align -I. -c sflow_poller.c | |
gcc -D_GNU_SOURCE -DSTDC_HEADERS -O3 -DNDEBUG -Wall -Wcast-align -I. -c sflow_receiver.c | |
ar cru libsflow.a sflow_agent.o sflow_sampler.o sflow_poller.o sflow_receiver.o | |
ranlib libsflow.a | |
make[1]: Leaving directory `/tmp/host-sflow/src/sflow' |
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
Index: src/Linux/Makefile | |
=================================================================== | |
--- src/Linux/Makefile (revision 317) | |
+++ src/Linux/Makefile (working copy) | |
@@ -119,7 +119,7 @@ | |
SFLOWOVS_OBJS=sflowovsd.o util.o | |
CFLAGS+= -I. -I$(SFLOWDIR) -I$(JSONDIR) $(OPT) -Wall -D_GNU_SOURCE -DHSP_VERSION=$(VERSION) -DUTHEAP | |
-LIBS+= $(SFLOWDIR)/libsflow.a $(JSONDIR)/libjson.a -lresolv -lpthread | |
+LIBS+= $(SFLOWDIR)/libsflow.a $(JSONDIR)/libjson.a -lresolv -lpthread -lm |
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
def dosomething(): | |
return "I am doing a thing" |
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
from pyon.net.endpoint import RPCClient | |
from pyon.net.messaging import make_node | |
connection_params = { | |
'host': 'localhost', | |
'username': 'guest', | |
'password': 'guest', | |
'vhost': '/', | |
'port': 5672, | |
'heartbeat': 30 |
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
#!/usr/bin/env python | |
import os | |
import sys | |
import base64 | |
import boto | |
from boto.ec2.regioninfo import RegionInfo | |
import urllib2 | |
def pgm_help(): |
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
;==================================================================================== | |
; | |
; ARKANOID 83+ | |
;Started: September 20th 2002 | |
;By: Patrick Armstrong | |
; | |
; | |
;==================================================================================== | |
; | |
; Credits: |