Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Zeno Grandi
    @viruzzo
    I just realised that it's just an example, and there are no handlers defined by default (?); I've manually defined it in the configuration and it works :+1:
    fe1t
    @fe1t
    I can't find IRC channel for asking things anywhere.
    Can someone give me the address ? Thanks
    Webert de Souza Lima
    @webertrlz
    hey, does serf has any API endpoints so I could easily get my application talking to it?
    lucascnr
    @lucascnr
    @webertrlz you can talk to Serf using his RPC protocol, that can be found here https://www.serf.io/docs/agent/rpc.html
    Webert de Souza Lima
    @webertrlz
    :top:
    eladwexler
    @eladwexler
    ?
    can serf be embedded in commercial code? doing changes to it, without exposing the code?
    eladwexler
    @eladwexler
    thanks Stevo, what does it mean? yes or no ?
    Stevo Slavić
    @sslavic
    see permissions and conditions in top paragraph there
    Colin But
    @colinbut
    hey, just got a general question. How does serf fit into the hashicorp ecosystem suite of products? From the main hashicorp website i don't see any reference to serf. All i see is the 6 main products (vagrant, packer, terraform, consul, nomad, vault)
    Webert de Souza Lima
    @webertrlz
    @colinbut serf is the base of Consul
    Colin But
    @colinbut
    @webertrlz so we shouldn't use Serf? Is it just an internal thing? And how come Serf is not promoted as much as their other 6 products?
    Webert de Souza Lima
    @webertrlz
    @colinbut you can use serf as it is an Open Source solution as you wish, but it may be for very specific use cases
    @colinbut I have an ongoing service discovery architecture built on top of Serf. You can read through the docs. But Consul is a very robust service discovery itself.
    I thin Docker uses Serf as well for discovering containers on nodes of a cluster.
    think*
    Frederiko Costa
    @frederiko
    Hi guys, quick question: Serf is awesome for node membership management. I am interested in membership mgmt based on the health of a process on a member. Consul would be the way to go, IMO, but I wonder if anyone knows an implementation of that.
    Eric Anderson
    @ewa
    I've been playing with the Serf RPC API and when I query for members, the results I get back all make sense ... except that the Addr fields are all in some "raw" binary notation that I can't make sense of. Has anybody here seen anything similar?
    Frost Red Lee
    @frostRed
    Hi guys, What is the difference between Serf.Create and Agent.Create? Which one should I use?
    Dan Bent
    @Daanikus

    Hi serf team,

    Dan from CodeLingo here. Our @CodeLingoBot found some issues in serf and hashicorp/serf#540 to fix them. Is this useful? Would you like @CodeLingoBot to continue on and fix other issues it's found?

    Happy Coding!
    Dan & CodeLingo Team

    Nathan Dataguake Basanese
    @v6
    Does Serf use the Raft protocol?
    Webert de Souza Lima
    @webertrlz
    @v6 yes
    I mean, its consensus protocol is based on raft
    Bjørn Borud
    @borud
    are there any good, minimal examples of using serf as a library?
    munishsinghal
    @munishsinghal_twitter

    I am trying to create APIs using terraform for cloud(azure/aws/google/others) communication. Let me elaborate it bit more with an example.

    I want to create a VM on azure and VM name to be input by user at runtime(like: from POSTMAN) from my API. Once user input the name of VM then it should call terraform behind the scene and create VM.

    I am looking to create above workflow . Kindly suggest.

    andynaik
    @andynaik
    I'm seeing a decoder error on the serf agent when trying to send a Query request - [ERR] agent.ipc: Failed to evaluate request: decode fail
    ed: codec.decoder: Unhandled single-byte unsigned integer value: Unrecognized descriptor byte: aa. I'm not sure why. I've described the Query request as below in C#
    public class QueryRequestBody
    {
    [MessagePackMember(0)]
    public List<string> FilterNodes;
        [MessagePackMember(1)]
        public Dictionary<string, string> FilterTags;
    
        [MessagePackMember(2)]
        public bool RequestAck;
    
        [MessagePackMember(3)]
        public ulong Timeout;
    
        [MessagePackMember(4)]
        public string Name;
    
        [MessagePackMember(5)]
        public byte[] Payload;
    EricBerridge
    @EricBerridge
    Hello, I'm new here and trying to build Serf for the first time. I'm developing for Windows. After installing Go, MinGW, and the Serf repo, I try "make" and get an error telling me that only OSX is supported Can't setup interfaces on non-Mac. Error!. Is it possible to build for Windows on a Windows box, or will I need a Mac to do this?
    PS - specifically, I'm trying to build an Arm64 version for Windows. Thanks.
    ayeshasalman
    @ayeshasalman_gitlab
    hi
    Hows everyone doing
    ?
    brmarkus
    @brmarkus
    hi community,
    serf is implemented in GO, right?
    could serf be used in a C++ program, i.e. is there a C++ binding available?
    Steven Tran
    @stetra
    hi, I am interested in using serf for failure detection in a large cluster (>10k nodes). Would serf be able to handle this kind of scale?
    Michael Aldridge
    @the-maldridge
    @stetra yes, Serf has been proven in a very large cluster as part of the Nomad C1M exercise
    Michael Aldridge
    @the-maldridge
    @brmarkus you could do what you want by making a small Go library that exposes the functionality you want and compiling it as a shared object, but I don't know of any go project actually that builds full bindings for another language
    Michael Aldridge
    @the-maldridge
    Are there any docs for using serf effectively to build the backing datastore of an application? My max size for the entire store is 64M, which I think should be well within the gossip limits.
    rohit7ce
    @rohit7ce
    For serf encryption/decryption using keyring file, Let's have we have Node1 , Node 2, Node 3 with primary key k1. Now Node 3 goes down.....In the meantime,,Node1 did (keygen,install,use) operations..So Node 1, Node 2 are with K2(Primary key),K1(Secondary key)....Now Node 3 comes up..1) will he able to decrypt the messages coming from Node 1/Node 2....2) How do we say serf supports one key can encrypt a message, but many keys can decrypt a message.
    Sshpark
    @sshpark
    Can I train ML models on serf?
    Diego Bernardes
    @diegobernardes
    I'm trying to do something with Serf embedded in Go but I'm getting confused. It's easy to do the query, but how to respond it? It's not clear for me.
    Diego Bernardes
    @diegobernardes
    Nevermind, just realized that what I'm trying to do need to be done into a higher level.
    Michael Aldridge
    @the-maldridge
    @diegobernardes please do share, this channel is effectively dead
    my question from July is still unanswered
    Diego Bernardes
    @diegobernardes

    @the-maldridge as far as I understood while I was reading the Serf code it's intent is just to establish and keep the state of the cluster. On top of that you need to create you're own communication protocol, on my case each node started a HTTP server and this is how they communicate with each other. If you need coordination, then raft can come in.

    Maybe with Memberlist, that is a dependency from Serf, should be able to send message to other nodes: https://godoc.org/github.com/hashicorp/memberlist#Memberlist.SendReliable
    Unfortunately I was not able to make it work.

    Serf is amazing, but it's really lacking examples.

    Michael Aldridge
    @the-maldridge
    yeah, that's my frustration with it
    I want to use serf to bootstrap a raft db under an app I have, but what seems like the default use case is apparently quite complicated
    Matthias Urlichs
    @smurfix
    I'm rather unhappy with Serf. I have a three-node cluster and messages I send to the serf daemon on one node sit there for 100+ msec before getting forwarded to the others. reaction on the issue I opened either. hashicorp/serf#581
    Michael Aldridge
    @the-maldridge
    your lack of patience both in issue handling and message delivery suggests that yes, an eventually consistent system probably isn't for you and as you list in your message, MQTT is probably closer to what you're actually looking for.