Ramesh Mohan Reddy

1

votes
2

answer
333

views

Throttling by rejecting based on response payload size in Apache Camel

I have a requirement where our application based out of Camel can get huge payloads (50+mb) responses too. We need a way to reject such huge responses. I couldn't find a built-in feature within Camel that enables this. At this point, I am planning to build a custom throttler as I have exhausted wit...
Ramesh Mohan Reddy
1

votes
1

answer
812

views

How to combine retry and circuit breaker in Apache Camel?

I would like to retry for say 3 times, and then increase failure threshold to 1. When this threshold reaches 5, I would like to open the circuit in Apache Camel. I understand there is circuit breaker support in Camel, however I couldn't find an example where retry can be combined with it. Any help...
Ramesh Mohan Reddy
1

votes
1

answer
2.3k

views

Jenkinsfile: Running docker.image(<myimagename>).inside in interactive mode

At present, when docker.image(...).inside is run within jenkinsfile, jenkins starts container in detach (daemon) mode. Can someone please help me on how to make jenkins run container in interactive mode? I tried giving '-it' options as in docker.image(...).inside(-it), however I got below error: or...
Ramesh Mohan Reddy
1

votes
1

answer
419

views

How to get entire json report using camel metrics

I have configured below in camel-context.xml file. I am able to see the reports well presented in hawtio. However, I would like to get the actual camel metrics generated json report logged to my application log file. Can anyone help me with how to achieve this? Thanks Ramesh
0

votes
0

answer
2

views

HapiJS sending log messages to an HTTP point

We are using good-http to send messages using 'server.log('info', 'test message')'. This messages displays on the console but not sent to our http end point. When we debugged good-http we found out that only 'request.log(...)' based invocations reach Wreck.request line that's placed within good-htt...
2

votes
1

answer
660

views

Set response headers

I need to set some response headers within server.onPreHandler ext method. There are 2 scenarios, where I need this happen when user sends an API request to my route end point. 1) In success scenario, I need to set headers and let process continue further down life cycle 2) In error scenario (where...
Ramesh Mohan Reddy
1

votes
2

answer
1.8k

views

How to delay consuming messages in Apache Camel from ActiveMQ

I have a requirement where I need to throttle by shaping (queuing) inbound traffic when client app sends more than 1000 requests in a 5 sec time span. The solution I followed is: I have a camel:throttle setting max requests to 1000 and timespan to 5 sec. When threshold is exceeded I am catching thr...
1

votes
1

answer
1.4k

views

Getting docker daemon not running error

I am trying to get docker working on my sys However, not able to Steps to reproduce the issue that I am facing: Installed EPEL on 6.5 RHEL Installed docker-io Able to run 'docker' command When running 'docker run -i -t fedora /bin/bash' command using without root, getting below error: FATA[0000] Pos...