Re: CloudProber Remote Probe - Server mode

106 views
Skip to first unread message

Manu Garg

unread,
Sep 8, 2017, 3:08:43 PM9/8/17
to Alastair Paragas, cloud...@googlegroups.com
Hi Alastair,

Which version of Cloudprober are you using? There are a couple of bug fixes that have not been released yet (I'll release a new version today). Particularly https://github.com/google/cloudprober/issues/29 may be relevant to what you're seeing.

Cheers,
Manu

On Thu, Sep 7, 2017 at 10:01 AM, Alastair Paragas <alastai...@gmail.com> wrote:
Good Morning/Afternoon, Mr. Garg,

I am currently having a problem with the Server mode of the Remote probe for CloudProber. Currently, I have a Python script that listens on STDIN, deserializes the Protobuf data into a ProbeRequest, serializes a response into a ProbeReply and spits it back out to STDOUT.

However, I am having a problem where CloudProber (and looking at the codebase, Go's context module) complaining about context timeout exceeded. I know for sure that the script responds well within the timeout (I have tried raising the timeout to enormous amounts as well). Is there any specific format of an output CloudProber is expecting for accepting ProbeReply serialized protobuf data?

--
Sincerely,

Alastair Paragas
OpenLab Summer Student Researcher, CERN (European Organization for Nuclear Research)
Software Engineer, Apple Inc.
alastai...@gmail.com




--
Manu Garg
Creator of Page Notes & Pacparser
"Journey is the destination of life."

Manu Garg

unread,
Sep 30, 2017, 11:49:57 PM9/30/17
to Alastair Paragas, cloud...@googlegroups.com
No worries. Glad to know that it's working now. If you don't mind sharing, may I ask which metrics collection tool you are using it with -- Prometheus or StackDriver?

Cheers,
Manu

On Sat, Sep 30, 2017 at 9:44 AM, Alastair Paragas <alastai...@gmail.com> wrote:
Good Morning/Afternoon, Mr. Garg,

Sorry for the late notice but I managed to figure it out! I got my Python prober working with CloudProber.

Many thanks for a great project!

On Fri, Sep 29, 2017 at 10:36 PM, Manu Garg <manu...@gmail.com> wrote:
Hello Alastair,

I am sorry, I forgot to reply you. I think what you're missing is Content-Length header.

Please take a look at this Go code for what's expected on stdout:

I'll add server libraries for python as well to make this part easy.

Good luck. Let me know how it goes.

On Tue, Sep 12, 2017 at 1:24 PM, Alastair Paragas <alastai...@gmail.com> wrote:
Good Morning/Afternoon, Mr. Garg,

I compiled against the latest commits and it still seems that I am getting a context deadline exceeded for my Probe Reply. I know up to this point that my server probe works all the way but cloud prober is complaining about context deadline exceeded.

I am sending a protobuf serialized ProbeReply to stdout and flushing it. Is there a protocol that I have to abide by to make this work or would what I am doing (snapshot attached) work just as well?

On Fri, Sep 8, 2017 at 2:55 PM, Alastair Paragas <alastai...@gmail.com> wrote:
Good Morning/Afternoon, Mr. Garg,

Thank you for the prompt response! I will check on that. I see some commits from 2 days ago so that might change it.
Software Engineer Intern, Apple Inc.
alastai...@gmail.com



--
Sincerely,

Alastair Paragas
OpenLab Summer Student Researcher, CERN (European Organization for Nuclear Research)
Software Engineer Intern, Apple Inc.
alastai...@gmail.com



--
Manu Garg
Creator of Page Notes & Pacparser
"Journey is the destination of life."



--
Sincerely,

Alastair Paragas
Reply all
Reply to author
Forward
0 new messages