Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kerwenwwer committed Mar 24, 2024
1 parent 3f61ac3 commit 3117770
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,32 @@ Basic Gossip API is from [PekoNode](https://github.com/dpwgc/pekonode/tree/maste
## Build and Test
Using make command it will build and run automatically.

Build binary file
``` make ```

If you only want to restart a docker compose server
Build docker image
``` make docker```

Start a docker compose server

``` docker-compose up ```

## k8s

``` kubectl apply -f k8s/deployment.yaml ```


### Implement function

### eBPF Feature

#### Fastbroadcast
#### In-kernel broadcastor
Using ebpf TC hook to implement a clone redirect with a resruion structure, allowing gossip to quickly replicate multiple copies by only sending a single packet to the Linux protocol stack.

Attention !! In Linux network implementation, to avoid netlink or TC causing packet recursion too many times, which could lead to stack overflow, the XMIT_RESUION_LIMIT is set to 8. If Gossip needs to broadcast to more than 8 nodes, consider modifying the kernel source code.

![](img/3.png)


##### Cluster node list sharing
* Synchronize the list of cluster nodes through rumor propagation `NodeList` (Each node will eventually store a complete list of nodes that can be used in service registration discovery scenarios)
Expand Down
Binary file added img/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3117770

Please sign in to comment.