Update Multiple GFLAGs

PUT https://{{cluster}}/irisservices/api/v1/clusters/gflag

Below are the examples of Service Names that the payload for the API would take:

  • kApollo
  • kBridge
  • kMagneto
  • kIris
  • kIrisProxy
  • kNewScribe
  • kStats
  • kYoda
  • kAlerts
  • kStatsCollector
  • kGandalf
  • kNexus
  • kNexusProxy
  • kBridgeProxy
  • kLibrarian
  • kGroot
  • kEagleAgent
  • kAthena

Note: When updating multiple GFLAGs, per API iteration - only the GFLAGs that belong to the same service are allowed.

For Services such as Iris, Nexus we need to perform a cluster wide service restart after applying the GFLAG for them to take effect, eventhough we update the GFLAG with effectiveNow: true

Request Body

{"serviceName"=>"kMagneto", "effectiveNow"=>true, "gflags"=>[{"name"=>"magneto_physical_backup_min_sub_task_size_mb", "reason"=>"GFLAG update via API", "value"=>"16384"}, {"name"=>"magneto_physical_files_backup_use_regex_wild_card", "reason"=>"GFLAG update via API", "value"=>"TRUE"}]}