-
Notifications
You must be signed in to change notification settings - Fork 443
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
351 additions
and
352 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
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 |
---|---|---|
@@ -1,27 +1,27 @@ | ||
package main | ||
|
||
import ( | ||
"log" | ||
"net" | ||
|
||
"google.golang.org/grpc" | ||
"google.golang.org/grpc/reflection" | ||
|
||
pb "github.com/kubeflow/katib/pkg/api/v1alpha1" | ||
"github.com/kubeflow/katib/pkg/suggestion/v1alpha1" | ||
suggestion "github.com/kubeflow/katib/pkg/suggestion/v1alpha1" | ||
"k8s.io/klog" | ||
) | ||
|
||
func main() { | ||
listener, err := net.Listen("tcp", suggestion.DefaultPort) | ||
if err != nil { | ||
log.Fatalf("Failed to listen: %v", err) | ||
klog.Fatalf("Failed to listen: %v", err) | ||
} | ||
size := 1<<31 - 1 | ||
s := grpc.NewServer(grpc.MaxRecvMsgSize(size), grpc.MaxSendMsgSize(size)) | ||
pb.RegisterSuggestionServer(s, suggestion.NewGridSuggestService()) | ||
reflection.Register(s) | ||
log.Printf("Grid Search Suggestion Service\n") | ||
klog.Info("Grid Search Suggestion Service") | ||
if err = s.Serve(listener); err != nil { | ||
log.Fatalf("Failed to serve: %v", err) | ||
klog.Fatalf("Failed to serve: %v", err) | ||
} | ||
} |
Oops, something went wrong.