在这里提出问题,因为没有足够的文件可用。
我有如下所示的class func getActiveGuestsForTable (tableSession: TableSessionTable) -> [GuestsTable]? {
guestTableRequest.predicate = NSPredicate(format: "table = %@ and closeTime = %@", tableSession, NSNull() as CVarArg)
guestTableRequest.sortDescriptors = [NSSortDescriptor(key: "openTime", ascending: true, selector: #selector(NSDate.compare(_:)))]
let matchedGuests = try? context.fetch(guestTableRequest)
return matchedGuests
}
配置,我想根据gke(谷歌容器引擎)stackdriver监控提供的自定义指标自动扩展实例。我想根据请求数量进行扩展。
HorizontalPodAutoscaler