forked from Velocidex/velociraptor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to support distributed architecture. (Velocidex#1384)
- Added SetSubjectWithCompletion() to allow asynchronous writes to control visibility. - Remove Walk() from Datastore and Filestore interfaces. - Added gRPC health check API - Added an env_var VELOCIRAPTOR_SLOW_FILESYSTEM which introduces artificial delays to all filesystem activity. This helps to simulate behavior on slow network filesystems such as EFS. - Minions now write client events themselves to the filesystem, as well as sending them over gRPC. In turn the master does not write the events but simply feeds them to any server event queries it needs. - Minion's gRPC now delay sending events and cache in memory to increase the send buffer size and reduce number of RPC calls. - Added File store implementation MemcacheFileDataStore. This filestore queues data in memory and writes it asynchronously to storage. This helps to combine multiple parts of the result sets into larger filesystem writes for more efficient writing. - System.Flow.Completion is now a server event artifact to ensure more efficient writing. - Client info manager now manages client ping information. The data is cached in memory for a while and then flushed asynchronously to the filestore in order to avoid writing client ping information too often. Data is sent to a new server event Server.Internal.ClientPing periodically to update the master in a more efficient batch way. - Minion hunt dispatchers are now all read only - they update their hunt status by receiving an Server.Internal.HuntUpdate message so they do not need to read it from storage. Only the master hunt dispatcher is allowed to update hunts in storage. - Notification service now batches notifications to reduce gRPC traffic.
- Loading branch information
Showing
138 changed files
with
4,445 additions
and
2,660 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package api | ||
|
||
import ( | ||
context "golang.org/x/net/context" | ||
"www.velocidex.com/golang/velociraptor/api/proto" | ||
api_proto "www.velocidex.com/golang/velociraptor/api/proto" | ||
) | ||
|
||
func (self *ApiServer) Check( | ||
ctx context.Context, | ||
in *api_proto.HealthCheckRequest) (*api_proto.HealthCheckResponse, error) { | ||
|
||
return &proto.HealthCheckResponse{ | ||
Status: api_proto.HealthCheckResponse_SERVING, | ||
}, nil | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.