Re: [patches] Re: [daemon 1/1] daemon: Introduce feedback daemon

Ilya Markov imarkov at tarantool.org
Tue Feb 13 17:37:50 MSK 2018


> + elseif feedback ~= false then
> + pcall(http.post, self.host, json.encode(feedback), {timeout=1})
> + end
>Did you test if this blocks? How many send per second can you
>perform? Could you play with iptables and see what happens if the
>address is behind a firewall?

The average throughput is 6 rps to remote server and
around 500 rps to local one.

With firewall dropping packages to server or from it, daemon doesn't fail.
>
>> +box.feedback_save = function(file_name)
>> +    local feedback = json.encode(box.internal.feedback_daemon.generate_feedback())
>> +    local fh, err = fio.open(file_name, {'O_CREAT', 'O_RDWR', 'O_TRUNC'},
>> +        tonumber('0777', 8))
>> +    if not fh then
>> +        error(err)
>> +    end
>> +    fh:write(feedback)
>> +    fh:close()
>> +end
>
>Does mariadb save it to a file? Would it help to add
>feedback.post() as well?
>

MariaDB proposes to use command prompt with curl 
in order to post the feedback.
https://mariadb.com/kb/en/library/feedback-plugin/#sending-data

-- 
Thank you,
Ilya Markov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.tarantool.org/pipermail/tarantool-patches/attachments/20180213/adcaf0e2/attachment.html>


More information about the Tarantool-patches mailing list