Merge pull request #346 from fanyangyang/M-GETTENANTS

[ADD] add new fields for router GetTenants
This commit is contained in:
barnettZQG 2019-08-05 14:49:54 +08:00 committed by GitHub
commit aae8ff7735
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 188 additions and 166 deletions

View File

@ -72,6 +72,8 @@ func (t *TenantAction) BindTenantsResource(source []*dbmodel.Tenants) api_model.
item.UnscdMemoryLimit = re.UnscdMemoryLimit item.UnscdMemoryLimit = re.UnscdMemoryLimit
item.UnscdMemoryReq = re.UnscdMemoryReq item.UnscdMemoryReq = re.UnscdMemoryReq
item.RunningAppNum = re.RunningAppNum item.RunningAppNum = re.RunningAppNum
item.RunningAppInternalNum = re.RunningAppInternalNum
item.RunningAppThirdNum = re.RunningAppThirdNum
} }
list.Add(item) list.Add(item)
} }

View File

@ -70,15 +70,17 @@ func (list TenantResList) Swap(i, j int) {
//TenantAndResource tenant and resource strcut //TenantAndResource tenant and resource strcut
type TenantAndResource struct { type TenantAndResource struct {
dbmodel.Tenants dbmodel.Tenants
CPURequest int64 `json:"cpu_request"` CPURequest int64 `json:"cpu_request"`
CPULimit int64 `json:"cpu_limit"` CPULimit int64 `json:"cpu_limit"`
MemoryRequest int64 `json:"memory_request"` MemoryRequest int64 `json:"memory_request"`
MemoryLimit int64 `json:"memory_limit"` MemoryLimit int64 `json:"memory_limit"`
UnscdCPUReq int64 `json:"unscd_cpu_req"` UnscdCPUReq int64 `json:"unscd_cpu_req"`
UnscdCPULimit int64 `json:"unscd_cpu_limit"` UnscdCPULimit int64 `json:"unscd_cpu_limit"`
UnscdMemoryReq int64 `json:"unscd_memory_req"` UnscdMemoryReq int64 `json:"unscd_memory_req"`
UnscdMemoryLimit int64 `json:"unscd_memory_limit"` UnscdMemoryLimit int64 `json:"unscd_memory_limit"`
RunningAppNum int64 `json:"running_app_num"` RunningAppNum int64 `json:"running_app_num"`
RunningAppInternalNum int64 `json:"running_app_internal_num"`
RunningAppThirdNum int64 `json:"running_app_third_num"`
} }
//TenantList Tenant list struct //TenantList Tenant list struct

View File

@ -3,12 +3,13 @@
package pb package pb
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import ( import (
context "context" context "golang.org/x/net/context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
math "math"
) )
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
@ -32,17 +33,16 @@ func (m *Empty) Reset() { *m = Empty{} }
func (m *Empty) String() string { return proto.CompactTextString(m) } func (m *Empty) String() string { return proto.CompactTextString(m) }
func (*Empty) ProtoMessage() {} func (*Empty) ProtoMessage() {}
func (*Empty) Descriptor() ([]byte, []int) { func (*Empty) Descriptor() ([]byte, []int) {
return fileDescriptor_f94cf1a886c479d6, []int{0} return fileDescriptor_app_runtime_server_52464b0f7eb03240, []int{0}
} }
func (m *Empty) XXX_Unmarshal(b []byte) error { func (m *Empty) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Empty.Unmarshal(m, b) return xxx_messageInfo_Empty.Unmarshal(m, b)
} }
func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Empty.Marshal(b, m, deterministic) return xxx_messageInfo_Empty.Marshal(b, m, deterministic)
} }
func (m *Empty) XXX_Merge(src proto.Message) { func (dst *Empty) XXX_Merge(src proto.Message) {
xxx_messageInfo_Empty.Merge(m, src) xxx_messageInfo_Empty.Merge(dst, src)
} }
func (m *Empty) XXX_Size() int { func (m *Empty) XXX_Size() int {
return xxx_messageInfo_Empty.Size(m) return xxx_messageInfo_Empty.Size(m)
@ -64,17 +64,16 @@ func (m *ServiceRequest) Reset() { *m = ServiceRequest{} }
func (m *ServiceRequest) String() string { return proto.CompactTextString(m) } func (m *ServiceRequest) String() string { return proto.CompactTextString(m) }
func (*ServiceRequest) ProtoMessage() {} func (*ServiceRequest) ProtoMessage() {}
func (*ServiceRequest) Descriptor() ([]byte, []int) { func (*ServiceRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_f94cf1a886c479d6, []int{1} return fileDescriptor_app_runtime_server_52464b0f7eb03240, []int{1}
} }
func (m *ServiceRequest) XXX_Unmarshal(b []byte) error { func (m *ServiceRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServiceRequest.Unmarshal(m, b) return xxx_messageInfo_ServiceRequest.Unmarshal(m, b)
} }
func (m *ServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServiceRequest.Marshal(b, m, deterministic) return xxx_messageInfo_ServiceRequest.Marshal(b, m, deterministic)
} }
func (m *ServiceRequest) XXX_Merge(src proto.Message) { func (dst *ServiceRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServiceRequest.Merge(m, src) xxx_messageInfo_ServiceRequest.Merge(dst, src)
} }
func (m *ServiceRequest) XXX_Size() int { func (m *ServiceRequest) XXX_Size() int {
return xxx_messageInfo_ServiceRequest.Size(m) return xxx_messageInfo_ServiceRequest.Size(m)
@ -103,17 +102,16 @@ func (m *ServicesRequest) Reset() { *m = ServicesRequest{} }
func (m *ServicesRequest) String() string { return proto.CompactTextString(m) } func (m *ServicesRequest) String() string { return proto.CompactTextString(m) }
func (*ServicesRequest) ProtoMessage() {} func (*ServicesRequest) ProtoMessage() {}
func (*ServicesRequest) Descriptor() ([]byte, []int) { func (*ServicesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_f94cf1a886c479d6, []int{2} return fileDescriptor_app_runtime_server_52464b0f7eb03240, []int{2}
} }
func (m *ServicesRequest) XXX_Unmarshal(b []byte) error { func (m *ServicesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServicesRequest.Unmarshal(m, b) return xxx_messageInfo_ServicesRequest.Unmarshal(m, b)
} }
func (m *ServicesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ServicesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServicesRequest.Marshal(b, m, deterministic) return xxx_messageInfo_ServicesRequest.Marshal(b, m, deterministic)
} }
func (m *ServicesRequest) XXX_Merge(src proto.Message) { func (dst *ServicesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServicesRequest.Merge(m, src) xxx_messageInfo_ServicesRequest.Merge(dst, src)
} }
func (m *ServicesRequest) XXX_Size() int { func (m *ServicesRequest) XXX_Size() int {
return xxx_messageInfo_ServicesRequest.Size(m) return xxx_messageInfo_ServicesRequest.Size(m)
@ -142,17 +140,16 @@ func (m *TenantRequest) Reset() { *m = TenantRequest{} }
func (m *TenantRequest) String() string { return proto.CompactTextString(m) } func (m *TenantRequest) String() string { return proto.CompactTextString(m) }
func (*TenantRequest) ProtoMessage() {} func (*TenantRequest) ProtoMessage() {}
func (*TenantRequest) Descriptor() ([]byte, []int) { func (*TenantRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_f94cf1a886c479d6, []int{3} return fileDescriptor_app_runtime_server_52464b0f7eb03240, []int{3}
} }
func (m *TenantRequest) XXX_Unmarshal(b []byte) error { func (m *TenantRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TenantRequest.Unmarshal(m, b) return xxx_messageInfo_TenantRequest.Unmarshal(m, b)
} }
func (m *TenantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *TenantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TenantRequest.Marshal(b, m, deterministic) return xxx_messageInfo_TenantRequest.Marshal(b, m, deterministic)
} }
func (m *TenantRequest) XXX_Merge(src proto.Message) { func (dst *TenantRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_TenantRequest.Merge(m, src) xxx_messageInfo_TenantRequest.Merge(dst, src)
} }
func (m *TenantRequest) XXX_Size() int { func (m *TenantRequest) XXX_Size() int {
return xxx_messageInfo_TenantRequest.Size(m) return xxx_messageInfo_TenantRequest.Size(m)
@ -181,17 +178,16 @@ func (m *StatusMessage) Reset() { *m = StatusMessage{} }
func (m *StatusMessage) String() string { return proto.CompactTextString(m) } func (m *StatusMessage) String() string { return proto.CompactTextString(m) }
func (*StatusMessage) ProtoMessage() {} func (*StatusMessage) ProtoMessage() {}
func (*StatusMessage) Descriptor() ([]byte, []int) { func (*StatusMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_f94cf1a886c479d6, []int{4} return fileDescriptor_app_runtime_server_52464b0f7eb03240, []int{4}
} }
func (m *StatusMessage) XXX_Unmarshal(b []byte) error { func (m *StatusMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StatusMessage.Unmarshal(m, b) return xxx_messageInfo_StatusMessage.Unmarshal(m, b)
} }
func (m *StatusMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *StatusMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StatusMessage.Marshal(b, m, deterministic) return xxx_messageInfo_StatusMessage.Marshal(b, m, deterministic)
} }
func (m *StatusMessage) XXX_Merge(src proto.Message) { func (dst *StatusMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_StatusMessage.Merge(m, src) xxx_messageInfo_StatusMessage.Merge(dst, src)
} }
func (m *StatusMessage) XXX_Size() int { func (m *StatusMessage) XXX_Size() int {
return xxx_messageInfo_StatusMessage.Size(m) return xxx_messageInfo_StatusMessage.Size(m)
@ -220,17 +216,16 @@ func (m *DiskMessage) Reset() { *m = DiskMessage{} }
func (m *DiskMessage) String() string { return proto.CompactTextString(m) } func (m *DiskMessage) String() string { return proto.CompactTextString(m) }
func (*DiskMessage) ProtoMessage() {} func (*DiskMessage) ProtoMessage() {}
func (*DiskMessage) Descriptor() ([]byte, []int) { func (*DiskMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_f94cf1a886c479d6, []int{5} return fileDescriptor_app_runtime_server_52464b0f7eb03240, []int{5}
} }
func (m *DiskMessage) XXX_Unmarshal(b []byte) error { func (m *DiskMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DiskMessage.Unmarshal(m, b) return xxx_messageInfo_DiskMessage.Unmarshal(m, b)
} }
func (m *DiskMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *DiskMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DiskMessage.Marshal(b, m, deterministic) return xxx_messageInfo_DiskMessage.Marshal(b, m, deterministic)
} }
func (m *DiskMessage) XXX_Merge(src proto.Message) { func (dst *DiskMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_DiskMessage.Merge(m, src) xxx_messageInfo_DiskMessage.Merge(dst, src)
} }
func (m *DiskMessage) XXX_Size() int { func (m *DiskMessage) XXX_Size() int {
return xxx_messageInfo_DiskMessage.Size(m) return xxx_messageInfo_DiskMessage.Size(m)
@ -259,17 +254,16 @@ func (m *ServiceAppPodList) Reset() { *m = ServiceAppPodList{} }
func (m *ServiceAppPodList) String() string { return proto.CompactTextString(m) } func (m *ServiceAppPodList) String() string { return proto.CompactTextString(m) }
func (*ServiceAppPodList) ProtoMessage() {} func (*ServiceAppPodList) ProtoMessage() {}
func (*ServiceAppPodList) Descriptor() ([]byte, []int) { func (*ServiceAppPodList) Descriptor() ([]byte, []int) {
return fileDescriptor_f94cf1a886c479d6, []int{6} return fileDescriptor_app_runtime_server_52464b0f7eb03240, []int{6}
} }
func (m *ServiceAppPodList) XXX_Unmarshal(b []byte) error { func (m *ServiceAppPodList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServiceAppPodList.Unmarshal(m, b) return xxx_messageInfo_ServiceAppPodList.Unmarshal(m, b)
} }
func (m *ServiceAppPodList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ServiceAppPodList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServiceAppPodList.Marshal(b, m, deterministic) return xxx_messageInfo_ServiceAppPodList.Marshal(b, m, deterministic)
} }
func (m *ServiceAppPodList) XXX_Merge(src proto.Message) { func (dst *ServiceAppPodList) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServiceAppPodList.Merge(m, src) xxx_messageInfo_ServiceAppPodList.Merge(dst, src)
} }
func (m *ServiceAppPodList) XXX_Size() int { func (m *ServiceAppPodList) XXX_Size() int {
return xxx_messageInfo_ServiceAppPodList.Size(m) return xxx_messageInfo_ServiceAppPodList.Size(m)
@ -304,17 +298,16 @@ func (m *ServiceAppPod) Reset() { *m = ServiceAppPod{} }
func (m *ServiceAppPod) String() string { return proto.CompactTextString(m) } func (m *ServiceAppPod) String() string { return proto.CompactTextString(m) }
func (*ServiceAppPod) ProtoMessage() {} func (*ServiceAppPod) ProtoMessage() {}
func (*ServiceAppPod) Descriptor() ([]byte, []int) { func (*ServiceAppPod) Descriptor() ([]byte, []int) {
return fileDescriptor_f94cf1a886c479d6, []int{7} return fileDescriptor_app_runtime_server_52464b0f7eb03240, []int{7}
} }
func (m *ServiceAppPod) XXX_Unmarshal(b []byte) error { func (m *ServiceAppPod) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServiceAppPod.Unmarshal(m, b) return xxx_messageInfo_ServiceAppPod.Unmarshal(m, b)
} }
func (m *ServiceAppPod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ServiceAppPod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServiceAppPod.Marshal(b, m, deterministic) return xxx_messageInfo_ServiceAppPod.Marshal(b, m, deterministic)
} }
func (m *ServiceAppPod) XXX_Merge(src proto.Message) { func (dst *ServiceAppPod) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServiceAppPod.Merge(m, src) xxx_messageInfo_ServiceAppPod.Merge(dst, src)
} }
func (m *ServiceAppPod) XXX_Size() int { func (m *ServiceAppPod) XXX_Size() int {
return xxx_messageInfo_ServiceAppPod.Size(m) return xxx_messageInfo_ServiceAppPod.Size(m)
@ -386,17 +379,16 @@ func (m *Container) Reset() { *m = Container{} }
func (m *Container) String() string { return proto.CompactTextString(m) } func (m *Container) String() string { return proto.CompactTextString(m) }
func (*Container) ProtoMessage() {} func (*Container) ProtoMessage() {}
func (*Container) Descriptor() ([]byte, []int) { func (*Container) Descriptor() ([]byte, []int) {
return fileDescriptor_f94cf1a886c479d6, []int{8} return fileDescriptor_app_runtime_server_52464b0f7eb03240, []int{8}
} }
func (m *Container) XXX_Unmarshal(b []byte) error { func (m *Container) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Container.Unmarshal(m, b) return xxx_messageInfo_Container.Unmarshal(m, b)
} }
func (m *Container) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *Container) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Container.Marshal(b, m, deterministic) return xxx_messageInfo_Container.Marshal(b, m, deterministic)
} }
func (m *Container) XXX_Merge(src proto.Message) { func (dst *Container) XXX_Merge(src proto.Message) {
xxx_messageInfo_Container.Merge(m, src) xxx_messageInfo_Container.Merge(dst, src)
} }
func (m *Container) XXX_Size() int { func (m *Container) XXX_Size() int {
return xxx_messageInfo_Container.Size(m) return xxx_messageInfo_Container.Size(m)
@ -441,17 +433,16 @@ func (m *DeployInfo) Reset() { *m = DeployInfo{} }
func (m *DeployInfo) String() string { return proto.CompactTextString(m) } func (m *DeployInfo) String() string { return proto.CompactTextString(m) }
func (*DeployInfo) ProtoMessage() {} func (*DeployInfo) ProtoMessage() {}
func (*DeployInfo) Descriptor() ([]byte, []int) { func (*DeployInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_f94cf1a886c479d6, []int{9} return fileDescriptor_app_runtime_server_52464b0f7eb03240, []int{9}
} }
func (m *DeployInfo) XXX_Unmarshal(b []byte) error { func (m *DeployInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeployInfo.Unmarshal(m, b) return xxx_messageInfo_DeployInfo.Unmarshal(m, b)
} }
func (m *DeployInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *DeployInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeployInfo.Marshal(b, m, deterministic) return xxx_messageInfo_DeployInfo.Marshal(b, m, deterministic)
} }
func (m *DeployInfo) XXX_Merge(src proto.Message) { func (dst *DeployInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeployInfo.Merge(m, src) xxx_messageInfo_DeployInfo.Merge(dst, src)
} }
func (m *DeployInfo) XXX_Size() int { func (m *DeployInfo) XXX_Size() int {
return xxx_messageInfo_DeployInfo.Size(m) return xxx_messageInfo_DeployInfo.Size(m)
@ -533,35 +524,36 @@ func (m *DeployInfo) GetStatus() string {
} }
type TenantResource struct { type TenantResource struct {
CpuRequest int64 `protobuf:"varint,1,opt,name=cpu_request,json=cpuRequest,proto3" json:"cpu_request,omitempty"` CpuRequest int64 `protobuf:"varint,1,opt,name=cpu_request,json=cpuRequest,proto3" json:"cpu_request,omitempty"`
CpuLimit int64 `protobuf:"varint,2,opt,name=cpu_limit,json=cpuLimit,proto3" json:"cpu_limit,omitempty"` CpuLimit int64 `protobuf:"varint,2,opt,name=cpu_limit,json=cpuLimit,proto3" json:"cpu_limit,omitempty"`
MemoryRequest int64 `protobuf:"varint,3,opt,name=memory_request,json=memoryRequest,proto3" json:"memory_request,omitempty"` MemoryRequest int64 `protobuf:"varint,3,opt,name=memory_request,json=memoryRequest,proto3" json:"memory_request,omitempty"`
MemoryLimit int64 `protobuf:"varint,4,opt,name=memory_limit,json=memoryLimit,proto3" json:"memory_limit,omitempty"` MemoryLimit int64 `protobuf:"varint,4,opt,name=memory_limit,json=memoryLimit,proto3" json:"memory_limit,omitempty"`
RunningAppNum int64 `protobuf:"varint,5,opt,name=running_app_num,json=runningAppNum,proto3" json:"running_app_num,omitempty"` RunningAppNum int64 `protobuf:"varint,5,opt,name=running_app_num,json=runningAppNum,proto3" json:"running_app_num,omitempty"`
UnscdCpuReq int64 `protobuf:"varint,6,opt,name=unscd_cpu_req,json=unscdCpuReq,proto3" json:"unscd_cpu_req,omitempty"` UnscdCpuReq int64 `protobuf:"varint,6,opt,name=unscd_cpu_req,json=unscdCpuReq,proto3" json:"unscd_cpu_req,omitempty"`
UnscdCpuLimit int64 `protobuf:"varint,7,opt,name=unscd_cpu_limit,json=unscdCpuLimit,proto3" json:"unscd_cpu_limit,omitempty"` UnscdCpuLimit int64 `protobuf:"varint,7,opt,name=unscd_cpu_limit,json=unscdCpuLimit,proto3" json:"unscd_cpu_limit,omitempty"`
UnscdMemoryReq int64 `protobuf:"varint,8,opt,name=unscd_memory_req,json=unscdMemoryReq,proto3" json:"unscd_memory_req,omitempty"` UnscdMemoryReq int64 `protobuf:"varint,8,opt,name=unscd_memory_req,json=unscdMemoryReq,proto3" json:"unscd_memory_req,omitempty"`
UnscdMemoryLimit int64 `protobuf:"varint,9,opt,name=unscd_memory_limit,json=unscdMemoryLimit,proto3" json:"unscd_memory_limit,omitempty"` UnscdMemoryLimit int64 `protobuf:"varint,9,opt,name=unscd_memory_limit,json=unscdMemoryLimit,proto3" json:"unscd_memory_limit,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` RunningAppThirdNum int64 `protobuf:"varint,10,opt,name=running_app_third_num,json=runningAppThirdNum,proto3" json:"running_app_third_num,omitempty"`
XXX_unrecognized []byte `json:"-"` RunningAppInternalNum int64 `protobuf:"varint,11,opt,name=running_app_internal_num,json=runningAppInternalNum,proto3" json:"running_app_internal_num,omitempty"`
XXX_sizecache int32 `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *TenantResource) Reset() { *m = TenantResource{} } func (m *TenantResource) Reset() { *m = TenantResource{} }
func (m *TenantResource) String() string { return proto.CompactTextString(m) } func (m *TenantResource) String() string { return proto.CompactTextString(m) }
func (*TenantResource) ProtoMessage() {} func (*TenantResource) ProtoMessage() {}
func (*TenantResource) Descriptor() ([]byte, []int) { func (*TenantResource) Descriptor() ([]byte, []int) {
return fileDescriptor_f94cf1a886c479d6, []int{10} return fileDescriptor_app_runtime_server_52464b0f7eb03240, []int{10}
} }
func (m *TenantResource) XXX_Unmarshal(b []byte) error { func (m *TenantResource) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TenantResource.Unmarshal(m, b) return xxx_messageInfo_TenantResource.Unmarshal(m, b)
} }
func (m *TenantResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *TenantResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TenantResource.Marshal(b, m, deterministic) return xxx_messageInfo_TenantResource.Marshal(b, m, deterministic)
} }
func (m *TenantResource) XXX_Merge(src proto.Message) { func (dst *TenantResource) XXX_Merge(src proto.Message) {
xxx_messageInfo_TenantResource.Merge(m, src) xxx_messageInfo_TenantResource.Merge(dst, src)
} }
func (m *TenantResource) XXX_Size() int { func (m *TenantResource) XXX_Size() int {
return xxx_messageInfo_TenantResource.Size(m) return xxx_messageInfo_TenantResource.Size(m)
@ -635,6 +627,20 @@ func (m *TenantResource) GetUnscdMemoryLimit() int64 {
return 0 return 0
} }
func (m *TenantResource) GetRunningAppThirdNum() int64 {
if m != nil {
return m.RunningAppThirdNum
}
return 0
}
func (m *TenantResource) GetRunningAppInternalNum() int64 {
if m != nil {
return m.RunningAppInternalNum
}
return 0
}
type AddThirdPartyEndpointsReq struct { type AddThirdPartyEndpointsReq struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
Sid string `protobuf:"bytes,2,opt,name=sid,proto3" json:"sid,omitempty"` Sid string `protobuf:"bytes,2,opt,name=sid,proto3" json:"sid,omitempty"`
@ -650,17 +656,16 @@ func (m *AddThirdPartyEndpointsReq) Reset() { *m = AddThirdPartyEndpoint
func (m *AddThirdPartyEndpointsReq) String() string { return proto.CompactTextString(m) } func (m *AddThirdPartyEndpointsReq) String() string { return proto.CompactTextString(m) }
func (*AddThirdPartyEndpointsReq) ProtoMessage() {} func (*AddThirdPartyEndpointsReq) ProtoMessage() {}
func (*AddThirdPartyEndpointsReq) Descriptor() ([]byte, []int) { func (*AddThirdPartyEndpointsReq) Descriptor() ([]byte, []int) {
return fileDescriptor_f94cf1a886c479d6, []int{11} return fileDescriptor_app_runtime_server_52464b0f7eb03240, []int{11}
} }
func (m *AddThirdPartyEndpointsReq) XXX_Unmarshal(b []byte) error { func (m *AddThirdPartyEndpointsReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddThirdPartyEndpointsReq.Unmarshal(m, b) return xxx_messageInfo_AddThirdPartyEndpointsReq.Unmarshal(m, b)
} }
func (m *AddThirdPartyEndpointsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *AddThirdPartyEndpointsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AddThirdPartyEndpointsReq.Marshal(b, m, deterministic) return xxx_messageInfo_AddThirdPartyEndpointsReq.Marshal(b, m, deterministic)
} }
func (m *AddThirdPartyEndpointsReq) XXX_Merge(src proto.Message) { func (dst *AddThirdPartyEndpointsReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddThirdPartyEndpointsReq.Merge(m, src) xxx_messageInfo_AddThirdPartyEndpointsReq.Merge(dst, src)
} }
func (m *AddThirdPartyEndpointsReq) XXX_Size() int { func (m *AddThirdPartyEndpointsReq) XXX_Size() int {
return xxx_messageInfo_AddThirdPartyEndpointsReq.Size(m) return xxx_messageInfo_AddThirdPartyEndpointsReq.Size(m)
@ -721,17 +726,16 @@ func (m *UpdThirdPartyEndpointsReq) Reset() { *m = UpdThirdPartyEndpoint
func (m *UpdThirdPartyEndpointsReq) String() string { return proto.CompactTextString(m) } func (m *UpdThirdPartyEndpointsReq) String() string { return proto.CompactTextString(m) }
func (*UpdThirdPartyEndpointsReq) ProtoMessage() {} func (*UpdThirdPartyEndpointsReq) ProtoMessage() {}
func (*UpdThirdPartyEndpointsReq) Descriptor() ([]byte, []int) { func (*UpdThirdPartyEndpointsReq) Descriptor() ([]byte, []int) {
return fileDescriptor_f94cf1a886c479d6, []int{12} return fileDescriptor_app_runtime_server_52464b0f7eb03240, []int{12}
} }
func (m *UpdThirdPartyEndpointsReq) XXX_Unmarshal(b []byte) error { func (m *UpdThirdPartyEndpointsReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdThirdPartyEndpointsReq.Unmarshal(m, b) return xxx_messageInfo_UpdThirdPartyEndpointsReq.Unmarshal(m, b)
} }
func (m *UpdThirdPartyEndpointsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *UpdThirdPartyEndpointsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdThirdPartyEndpointsReq.Marshal(b, m, deterministic) return xxx_messageInfo_UpdThirdPartyEndpointsReq.Marshal(b, m, deterministic)
} }
func (m *UpdThirdPartyEndpointsReq) XXX_Merge(src proto.Message) { func (dst *UpdThirdPartyEndpointsReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdThirdPartyEndpointsReq.Merge(m, src) xxx_messageInfo_UpdThirdPartyEndpointsReq.Merge(dst, src)
} }
func (m *UpdThirdPartyEndpointsReq) XXX_Size() int { func (m *UpdThirdPartyEndpointsReq) XXX_Size() int {
return xxx_messageInfo_UpdThirdPartyEndpointsReq.Size(m) return xxx_messageInfo_UpdThirdPartyEndpointsReq.Size(m)
@ -789,17 +793,16 @@ func (m *DelThirdPartyEndpointsReq) Reset() { *m = DelThirdPartyEndpoint
func (m *DelThirdPartyEndpointsReq) String() string { return proto.CompactTextString(m) } func (m *DelThirdPartyEndpointsReq) String() string { return proto.CompactTextString(m) }
func (*DelThirdPartyEndpointsReq) ProtoMessage() {} func (*DelThirdPartyEndpointsReq) ProtoMessage() {}
func (*DelThirdPartyEndpointsReq) Descriptor() ([]byte, []int) { func (*DelThirdPartyEndpointsReq) Descriptor() ([]byte, []int) {
return fileDescriptor_f94cf1a886c479d6, []int{13} return fileDescriptor_app_runtime_server_52464b0f7eb03240, []int{13}
} }
func (m *DelThirdPartyEndpointsReq) XXX_Unmarshal(b []byte) error { func (m *DelThirdPartyEndpointsReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DelThirdPartyEndpointsReq.Unmarshal(m, b) return xxx_messageInfo_DelThirdPartyEndpointsReq.Unmarshal(m, b)
} }
func (m *DelThirdPartyEndpointsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *DelThirdPartyEndpointsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DelThirdPartyEndpointsReq.Marshal(b, m, deterministic) return xxx_messageInfo_DelThirdPartyEndpointsReq.Marshal(b, m, deterministic)
} }
func (m *DelThirdPartyEndpointsReq) XXX_Merge(src proto.Message) { func (dst *DelThirdPartyEndpointsReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_DelThirdPartyEndpointsReq.Merge(m, src) xxx_messageInfo_DelThirdPartyEndpointsReq.Merge(dst, src)
} }
func (m *DelThirdPartyEndpointsReq) XXX_Size() int { func (m *DelThirdPartyEndpointsReq) XXX_Size() int {
return xxx_messageInfo_DelThirdPartyEndpointsReq.Size(m) return xxx_messageInfo_DelThirdPartyEndpointsReq.Size(m)
@ -840,17 +843,16 @@ func (m *ThirdPartyEndpoint) Reset() { *m = ThirdPartyEndpoint{} }
func (m *ThirdPartyEndpoint) String() string { return proto.CompactTextString(m) } func (m *ThirdPartyEndpoint) String() string { return proto.CompactTextString(m) }
func (*ThirdPartyEndpoint) ProtoMessage() {} func (*ThirdPartyEndpoint) ProtoMessage() {}
func (*ThirdPartyEndpoint) Descriptor() ([]byte, []int) { func (*ThirdPartyEndpoint) Descriptor() ([]byte, []int) {
return fileDescriptor_f94cf1a886c479d6, []int{14} return fileDescriptor_app_runtime_server_52464b0f7eb03240, []int{14}
} }
func (m *ThirdPartyEndpoint) XXX_Unmarshal(b []byte) error { func (m *ThirdPartyEndpoint) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ThirdPartyEndpoint.Unmarshal(m, b) return xxx_messageInfo_ThirdPartyEndpoint.Unmarshal(m, b)
} }
func (m *ThirdPartyEndpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ThirdPartyEndpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ThirdPartyEndpoint.Marshal(b, m, deterministic) return xxx_messageInfo_ThirdPartyEndpoint.Marshal(b, m, deterministic)
} }
func (m *ThirdPartyEndpoint) XXX_Merge(src proto.Message) { func (dst *ThirdPartyEndpoint) XXX_Merge(src proto.Message) {
xxx_messageInfo_ThirdPartyEndpoint.Merge(m, src) xxx_messageInfo_ThirdPartyEndpoint.Merge(dst, src)
} }
func (m *ThirdPartyEndpoint) XXX_Size() int { func (m *ThirdPartyEndpoint) XXX_Size() int {
return xxx_messageInfo_ThirdPartyEndpoint.Size(m) return xxx_messageInfo_ThirdPartyEndpoint.Size(m)
@ -914,17 +916,16 @@ func (m *ThirdPartyEndpoints) Reset() { *m = ThirdPartyEndpoints{} }
func (m *ThirdPartyEndpoints) String() string { return proto.CompactTextString(m) } func (m *ThirdPartyEndpoints) String() string { return proto.CompactTextString(m) }
func (*ThirdPartyEndpoints) ProtoMessage() {} func (*ThirdPartyEndpoints) ProtoMessage() {}
func (*ThirdPartyEndpoints) Descriptor() ([]byte, []int) { func (*ThirdPartyEndpoints) Descriptor() ([]byte, []int) {
return fileDescriptor_f94cf1a886c479d6, []int{15} return fileDescriptor_app_runtime_server_52464b0f7eb03240, []int{15}
} }
func (m *ThirdPartyEndpoints) XXX_Unmarshal(b []byte) error { func (m *ThirdPartyEndpoints) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ThirdPartyEndpoints.Unmarshal(m, b) return xxx_messageInfo_ThirdPartyEndpoints.Unmarshal(m, b)
} }
func (m *ThirdPartyEndpoints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ThirdPartyEndpoints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ThirdPartyEndpoints.Marshal(b, m, deterministic) return xxx_messageInfo_ThirdPartyEndpoints.Marshal(b, m, deterministic)
} }
func (m *ThirdPartyEndpoints) XXX_Merge(src proto.Message) { func (dst *ThirdPartyEndpoints) XXX_Merge(src proto.Message) {
xxx_messageInfo_ThirdPartyEndpoints.Merge(m, src) xxx_messageInfo_ThirdPartyEndpoints.Merge(dst, src)
} }
func (m *ThirdPartyEndpoints) XXX_Size() int { func (m *ThirdPartyEndpoints) XXX_Size() int {
return xxx_messageInfo_ThirdPartyEndpoints.Size(m) return xxx_messageInfo_ThirdPartyEndpoints.Size(m)
@ -970,81 +971,6 @@ func init() {
proto.RegisterType((*ThirdPartyEndpoints)(nil), "pb.ThirdPartyEndpoints") proto.RegisterType((*ThirdPartyEndpoints)(nil), "pb.ThirdPartyEndpoints")
} }
func init() { proto.RegisterFile("app_runtime_server.proto", fileDescriptor_f94cf1a886c479d6) }
var fileDescriptor_f94cf1a886c479d6 = []byte{
// 1103 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0x6d, 0x6f, 0xdb, 0x36,
0x10, 0xf6, 0xbb, 0xad, 0x73, 0xec, 0x26, 0xec, 0xd2, 0x2a, 0x6e, 0xbb, 0xb6, 0x1a, 0x3a, 0xe4,
0x43, 0xe0, 0x0d, 0x19, 0x82, 0xa5, 0x69, 0xb1, 0xc1, 0x48, 0x82, 0xcc, 0x40, 0xda, 0x05, 0x4a,
0xfa, 0xd9, 0x50, 0x24, 0x36, 0xe3, 0x62, 0x51, 0x9c, 0x48, 0x05, 0xd0, 0xc7, 0xed, 0x2f, 0xf4,
0x7f, 0x0d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 0x03,
0x41, 0x3e, 0x99, 0x9c, 0x1a, 0x3a, 0x80, 0xc1, 0x19, 0x16, 0x85, 0x39, 0x5b, 0xa5, 0x1e, 0x96,
0x7b, 0xbd, 0x53, 0x43, 0xaf, 0x61, 0xeb, 0x0c, 0x8b, 0xa5, 0x5e, 0xa2, 0xf6, 0x56, 0x7a, 0xc4,
0x8e, 0x50, 0x11, 0xd2, 0x34, 0xa7, 0x86, 0x7e, 0x80, 0x87, 0xd2, 0x7d, 0x55, 0x04, 0xab, 0xdc,
0x3f, 0xac, 0x0e, 0x24, 0x77, 0x6a, 0xe8, 0x18, 0xb6, 0x2b, 0x2b, 0x0d, 0xa9, 0xe9, 0xf6, 0xd1,
0x22, 0x1c, 0x59, 0x72, 0x59, 0xbf, 0xee, 0x95, 0x91, 0xca, 0x4a, 0xd1, 0x46, 0x3e, 0x5a, 0x44,
0x2b, 0x46, 0x2a, 0xaf, 0x3a, 0x32, 0x73, 0x76, 0xfe, 0x37, 0x8c, 0x5c, 0x77, 0xd4, 0xbf, 0x8f,
0x6f, 0xfe, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xab, 0x32, 0x17, 0x45, 0x99, 0x0c, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var _ context.Context var _ context.Context
var _ grpc.ClientConn var _ grpc.ClientConn
@ -1347,3 +1273,83 @@ var _AppRuntimeSync_serviceDesc = grpc.ServiceDesc{
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "app_runtime_server.proto", Metadata: "app_runtime_server.proto",
} }
func init() {
proto.RegisterFile("app_runtime_server.proto", fileDescriptor_app_runtime_server_52464b0f7eb03240)
}
var fileDescriptor_app_runtime_server_52464b0f7eb03240 = []byte{
// 1141 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0xdb, 0x6e, 0x1b,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xc4, 0x7f, 0x3a, 0xdf, 0xff, 0x15, 0x00, 0x00, 0xff, 0xff, 0x2c, 0x9a, 0x6a,
0xed, 0x05, 0x0d, 0x00, 0x00,
}

View File

@ -73,6 +73,8 @@ message TenantResource {
int64 unscd_cpu_limit = 7; int64 unscd_cpu_limit = 7;
int64 unscd_memory_req = 8; int64 unscd_memory_req = 8;
int64 unscd_memory_limit = 9; int64 unscd_memory_limit = 9;
int64 running_app_third_num = 10;
int64 running_app_internal_num = 11;
} }
message AddThirdPartyEndpointsReq { message AddThirdPartyEndpointsReq {

View File

@ -33,7 +33,7 @@ import (
"github.com/goodrain/rainbond/util" "github.com/goodrain/rainbond/util"
"github.com/goodrain/rainbond/worker/appm/store" "github.com/goodrain/rainbond/worker/appm/store"
"github.com/goodrain/rainbond/worker/appm/thirdparty/discovery" "github.com/goodrain/rainbond/worker/appm/thirdparty/discovery"
"github.com/goodrain/rainbond/worker/appm/types/v1" v1 "github.com/goodrain/rainbond/worker/appm/types/v1"
"github.com/goodrain/rainbond/worker/server/pb" "github.com/goodrain/rainbond/worker/server/pb"
"google.golang.org/grpc" "google.golang.org/grpc"
"google.golang.org/grpc/reflection" "google.golang.org/grpc/reflection"
@ -110,7 +110,17 @@ func (r *RuntimeServer) GetTenantResource(ctx context.Context, re *pb.TenantRequ
if res == nil { if res == nil {
return &tr, nil return &tr, nil
} }
tr.RunningAppNum = int64(len(r.store.GetTenantRunningApp(re.TenantId))) // tr.RunningAppNum = int64(len(r.store.GetTenantRunningApp(re.TenantId)))
// tr.RunningAppNum = int64(len(r.store.GetTenantRunningApp(re.TenantId)))
runningApps := r.store.GetTenantRunningApp(re.TenantId)
for _, app := range runningApps {
if app.ServiceKind == model.ServiceKindThirdParty {
tr.RunningAppThirdNum += 1
} else if app.ServiceKind == model.ServiceKindInternal {
tr.RunningAppInternalNum += 1
}
}
tr.RunningAppNum = int64(len(runningApps))
tr.CpuLimit = res.CPULimit tr.CpuLimit = res.CPULimit
tr.CpuRequest = res.CPURequest tr.CpuRequest = res.CPURequest
tr.MemoryLimit = res.MemoryLimit / 1024 / 1024 tr.MemoryLimit = res.MemoryLimit / 1024 / 1024