-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
113 create robust scoring system for gateway tunnels (#114)
- Structure to build and assess substrate node metrics, for gateway load balancing - HTTP Serviceable scoring Based on: - Cpu usage - Serviceable assets cached in DAG - Serviceable runtime shadows created - Serviceable memory allocation required to call vs available memory - Serviceable call history - Optimizations with http serviceable creation - Separate serviceable creation and provisioning serviceable execution requirements to minimize unnecessary operations
- Loading branch information
1 parent
1170440
commit f254414
Showing
38 changed files
with
1,004 additions
and
431 deletions.
There are no files selected for viewing
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,18 @@ | ||
package gateway | ||
|
||
import ( | ||
http "github.com/taubyte/http" | ||
"github.com/taubyte/p2p/peer" | ||
) | ||
|
||
func (g *Gateway) Node() peer.Node { | ||
return g.node | ||
} | ||
|
||
func (g *Gateway) Http() http.Service { | ||
return g.http | ||
} | ||
|
||
func (g *Gateway) Close() error { | ||
return g.substrateClient.Close() | ||
} |
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
Oops, something went wrong.