This project is mirrored from https://gitee.com/cowcomic/pixie.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 14 Jan, 2022 12 commits
  2. 13 Jan, 2022 8 commits
  3. 12 Jan, 2022 9 commits
    • smcavallo's avatar
      Add support for pod nodeSelector in helm and operator · 6f0fba98
      smcavallo authored
      
      Summary:
      update nodeSelector identifier Signed-off-by: smcavallo <smcavallo@hotmail.com>
      
      Additionally updated the generated files + lint
      
      Closes #362
      
      Test Plan: Deployed an operator release
      
      Reviewers: vihang
      
      Reviewed By: vihang
      Signed-off-by: default avatarsmcavallo <smcavallo@hotmail.com>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10477
      
      GitOrigin-RevId: 6b981387e2df7a17d6561ec898c768dacaa024d6
      6f0fba98
    • Michelle Nguyen's avatar
      Handle k8s node updates in PEM · e59cf2e2
      Michelle Nguyen authored
      
      Summary: We recently updated our metadata service to send node updates via NATS. We only use these updates in our cloud for autocomplete, but they still get sent to the PEMs. Because the PEMs don't handle these messages, they unnecessarily log per node update. This diff updates the PEM to handle the Node update, but currently doesn't do anything with it yet. We can update that when we have plans to do something with the node updates.
      
      Test Plan: Deployed PEM on skaffold, with logs in HandleNodeUpdate to ensure that function is getting called
      
      Reviewers: nserrino, jamesbartlett, vihang
      
      Reviewed By: vihang
      Signed-off-by: default avatarMichelle Nguyen <michellenguyen@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10472
      
      GitOrigin-RevId: 4092d049a9f9e1f1e1ab0826a9638890df4031ec
      e59cf2e2
    • Yaxiong Zhao's avatar
      [CLEANUP] Add logging after initialization, including uprobes, are deployed. · 75449674
      Yaxiong Zhao authored
      
      Summary: This avoids the extra noise when measuring CPU usage.
      
      Test Plan: Manual testing
      
      Reviewers: #stirling, oazizi
      
      Reviewed By: #stirling, oazizi
      
      Subscribers: oazizi
      Signed-off-by: default avatarYaxiong Zhao <yzhao@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10442
      
      GitOrigin-RevId: f7283970c9dde46b06400d311ada7ff0dac5f48f
      75449674
    • Pete Stevenson's avatar
      perf_profile_connector.h|cc: make the table push period a run time knob, for... · 4c8401f0
      Pete Stevenson authored
      perf_profile_connector.h|cc: make the table push period a run time knob, for https://github.com/pixie-io/pixie/issues/380.
      
      Summary: perf_profile_connector.h|cc: make the table push period a run time knob, for https://github.com/pixie-io/pixie/issues/380
      
      .
      
      Test Plan: Existing tests.
      
      Reviewers: #stirling, oazizi
      
      Reviewed By: #stirling, oazizi
      
      Subscribers: oazizi
      Signed-off-by: default avatarPete Stevenson <jps@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10471
      
      GitOrigin-RevId: 09140eac539f63e023c031a1049cf7cae1340f18
      4c8401f0
    • Frederick Ryckbosch's avatar
      Fix create_cloud_secrets for MacOS. · 2afd41fa
      Frederick Ryckbosch authored
      
      Summary:
      This should be more robust across MacOS and Linux.
      Closes #388
      Fixes #306
      
      Test Plan: Ran the scripts, ensured that the generated secrets look correct.
      
      Reviewers: zasgar, michelle
      
      Reviewed By: michelle
      Signed-off-by: default avatarFrederick Ryckbosch <fryckbosch@newrelic.com>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10474
      
      GitOrigin-RevId: 846d451eb0e70b9d4478bd389fbdab8925c5f00e
      2afd41fa
    • Zain Asgar's avatar
      Fix cache bazel poison caused by gperftools (also updates gperftools) · 8c1485e3
      Zain Asgar authored
      
      Summary:
      gperftools autogen.sh stage was creating files that were not hermetic. This lead to caching issues.
      This change should result in a much faster build.
      
      Test Plan: Jenkins
      
      Reviewers: vihang, michelle, oazizi, #third_party_approvers
      
      Reviewed By: vihang, #third_party_approvers
      Signed-off-by: default avatarZain Asgar <zasgar@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10473
      
      GitOrigin-RevId: ac0c631262a8a86a953c73fb7bafc5ea536d1077
      8c1485e3
    • Nick Lanam's avatar
      [PC-1344] Resizable quantile columns · 493a9af7
      Nick Lanam authored
      
      Summary:
      Achieved by rewriting the quantiles component. It was using a Vega chart before, which was like using a missile to cook a casserole.
      
      The features were/are:
      - Render a whisker chart without the left whisker (only p50, p90, and p99).
      - Color the percentile bars based on how "bad" they are (defined by the column using the chart)
      - Hover color and tooltip for percentile bars
      - Clicking a bar tells the data table to switch which percentile bar is selected and used for sorting.
      - Use a nonlinear (square root) scale.
      - Resize when the column does (this was not working before).
      
      This doesn't take a lot of code, and the component is used for a table cell that can appear dozens of times at once. Writing a more performant version made sense.
      
      Test Plan:
      - Run `px/cluster`.
      - Mess around with the latency column in the Services table:
        - The percentile bars in each cell have tooltips
        - The bars have hover states
        - The selected percentile (title of the column) is already highlighted
        - The color of the bars is green, orange, or red depending on how high the latency at that bar is
        - Resizing the column resizes the charts too
        - Clicking a percentile bar selects it (makes that the shown value to the right of the chart and changes the column title; changes which bar is highlighted in every row)
      - The chart should be much less performance intensive than before.
      
      Reviewers: michelle, vihang
      
      Reviewed By: michelle
      
      JIRA Issues: PC-1344
      Signed-off-by: default avatarNick Lanam <nlanam@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10456
      
      GitOrigin-RevId: aaea843c1b4422343a28b48cc04af8cff9f43ef5
      493a9af7
    • Nick Lanam's avatar
      [PC-1293] Suggest that autocomplete is showing a subset of results · d20bb539
      Nick Lanam authored
      
      Summary:
      Shows a little helper message under the autocomplete results when there were more hits than are shown.
      
      Uses the new `hasAdditionalMatches` property of the suggestions API.
      
      {F175940}
      
      Test Plan: Use the breadcrumbs, especially on `px/pod` args. When there are more than about five results - which happens in the `pod` arg - this implementation suggests that results aren't complete. The message doesn't appear when results are already comprehensive.
      
      Reviewers: michelle, vihang, philkuz
      
      Reviewed By: michelle
      
      JIRA Issues: PC-1293
      Signed-off-by: default avatarNick Lanam <nlanam@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10389
      
      GitOrigin-RevId: c55d4502476ab95b7857698adebd4db3e4316e53
      d20bb539
    • Nick Lanam's avatar
      [PC-1355] Don't reset column state on column reset · 0d5abe4e
      Nick Lanam authored
      
      Summary: TSIA.
      
      Test Plan:
      - Run `px/cluster`.
      - Sort the Services table by latency (the quantiles column)
      - Hide some columns
      - Resize some remaining columns
      - Click on a row to open it in the sidebar
      - Change which quantile is selected by clicking a pip in that column (if p50 is selected, try p90, etc)
      - Sorting and the latency column's header should update to use the selected percentile. Hidden columns, resized columns, and which row is selected should be preserved.
      
      Reviewers: michelle, vihang
      
      Reviewed By: michelle
      
      JIRA Issues: PC-1355
      Signed-off-by: default avatarNick Lanam <nlanam@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10464
      
      GitOrigin-RevId: 5ea6700620a4c604c5c63477be386cadc7242851
      0d5abe4e
  4. 11 Jan, 2022 11 commits
    • Vihang Mehta's avatar
      Don't set loading to false in cli_get mode from CLITokenPage · 1cb75b3c
      Vihang Mehta authored
      
      Summary:
      If the redirectGet succeeds, then we redirect to `/auth/cli-auth-complete`
      In this scenario, we don't want to actually render the CodeBox, so don't set
      loading to false.
      
      Test Plan: yarn dev
      
      Reviewers: michelle, philkuz
      
      Reviewed By: michelle
      
      JIRA Issues: PC-1357
      Signed-off-by: default avatarVihang Mehta <vihang@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10468
      
      GitOrigin-RevId: 08ec8ca30c976b2119c13a999b2a893d35c23db1
      1cb75b3c
    • Vihang Mehta's avatar
      Add missing license · 94d1aca3
      Vihang Mehta authored
      
      Summary: This couldn't be auto fetched.
      
      Test Plan: Ran the license generator
      
      Reviewers: michelle
      
      Reviewed By: michelle
      Signed-off-by: default avatarVihang Mehta <vihang@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10467
      
      GitOrigin-RevId: dcfc8e399306d2e5d3d4361e646a63db7b117e0b
      94d1aca3
    • Ryan Cheng's avatar
      [Kafka] Consumer group rebalancing script · 9a382a4c
      Ryan Cheng authored
      
      Summary:
      This diff adds the PxL script to visualize Kafka consumer rebalancing events, including an overview of the consumer groups and the stop-the-world delay.
      {F175655}
      
      Test Plan: Manually tested in the UI.
      
      Reviewers: #stirling, oazizi
      
      Reviewed By: #stirling, oazizi
      
      Subscribers: oazizi
      Signed-off-by: default avatarRyan Cheng <rcheng@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10437
      
      GitOrigin-RevId: 5de8e6f63e32ba7b6b9719e630a09060f5bd7f33
      9a382a4c
    • Phillip Kuznetsov's avatar
      Track reset invite links events · b089f9e3
      Phillip Kuznetsov authored
      
      Summary: We're tracking invite users requests, we should track reset invite links as well.
      
      Test Plan: tested on yarn dev, found data for it.
      
      Reviewers: nlanam, michelle, vihang
      
      Reviewed By: vihang
      Signed-off-by: default avatarPhillip Kuznetsov <pkuznetsov@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10466
      
      GitOrigin-RevId: 06872e6fd906491e354fa93d9b1928f2f5196f6e
      b089f9e3
    • Vihang Mehta's avatar
      Handle users wihtout orgs who might try to log into the CLI · b525b419
      Vihang Mehta authored
      
      Summary:
      Our CLI auth callbacks used the just pass the auth access token to the
      CLI without checking anything. However the CLI doesn't like org less users.
      
      So now auth callbacks on the UI will always signup/login (previously we skipped
      UI login in cli mode), then check the org from the user creds, and redirect to
      the org setup page if the user doesn't have an org.
      
      The org setup page is told to rediect back to a CLI login complete page that
      renders the token or sends it to the cli server as appropriate.
      
      Test Plan:
      `px auth login` and `px auth login --manual` with an org less user
      now correctly send you to org setup and after org setup send the token to the
      cli. Checking the org from the cli auth.json ensures that the CLI successfully
      exchanged the access token for a valid user token.
      
      Reviewers: michelle, nserrino
      
      Reviewed By: michelle
      
      Subscribers: nlanam, philkuz
      Signed-off-by: default avatarVihang Mehta <vihang@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10465
      
      GitOrigin-RevId: c7b99d107e26d5e9b5f644dd9294a6b2bc53059e
      b525b419
    • Phillip Kuznetsov's avatar
      PC-1350: Add analytics event for clicking invite user button · c9f964d7
      Phillip Kuznetsov authored
      
      Summary: Adding a simple analytics event for whenever a user clicks on the invite users button. I don't track extra data since there is none.
      
      Test Plan: Tested on yarn dev, didn't break when I opened up the modal.
      
      Reviewers: michelle, nlanam, vihang
      
      Reviewed By: nlanam
      
      JIRA Issues: PC-1350
      Signed-off-by: default avatarPhillip Kuznetsov <pkuznetsov@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10462
      
      GitOrigin-RevId: db9750809ff6fa39862c7ce99cfc59194e6e2aec
      c9f964d7
    • Phillip Kuznetsov's avatar
      Fix error with invite text field being set to null · 4dad0c63
      Phillip Kuznetsov authored
      Summary:
      When you render the invite modal, React doesn't like that the text is null
      before the gql is done. Changing to an empty string to avoid that error and we get
      the same values.
      
      Got the following errors before:
      ```
      Warning: `value` prop on `input` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.
      ```
      ```
      Warning: A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components
      
      
      
      ```
      
      Test Plan:
      yarn dev. before change, opening the modal threw a console error.
      After change, opening the modal worked without throwing errors.
      
      Reviewers: nlanam, michelle, vihang
      
      Reviewed By: nlanam
      Signed-off-by: default avatarPhillip Kuznetsov <pkuznetsov@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10463
      
      GitOrigin-RevId: 961265cf9363a4d2468786b8a91a43948b979504
      4dad0c63
    • Natalie Serrino's avatar
      PC-1354: Improve error handling/logging of the cloud indexer's Vizier metadata watcher · 106936cb
      Natalie Serrino authored
      
      Summary:
      We've noticed that certain clusters fail to send any indexer data to Elastic on Pixie Cloud. This persists even in the case where we restart the indexer in cloud or restart Vizier fon that cluster. We've also seen logs about stan subscription timeouts in the indexer. In addition, there are repeated errors of Viziers trying to reconnect to the indexer, even though the indexer supposedly already started listening to those Viziers.
      
      It seems the following might be happening,
      1. Vizier tries to connect to the indexer to send over metadata
      2. The metadata subscription fails due to timeout
      3. Future attempts by that Vizier to connect to the indexer are blocked, because the indexer believes that the connection with that Vizier is already being handled (even though it's not because it failed to subscribe to stan).
      
      In this diff, the error from the stan subscription should now be propagated up and attributed to a particular Vizier so it's easier to diagnose if that's happening. In addition, if the indexer fails to establish a stan connection for a given Vizier, it will now allow subsequent retries for that Vizier rather than blocking them.
      
      This alone won't fix the full issue but it should hopefully address some of it and give us better insight into the cases of Viziers that seem unable to send metadata to the indexer.
      
      Test Plan: will want to run this in testing.
      
      Reviewers: michelle, philkuz, vihang
      
      Reviewed By: vihang
      
      JIRA Issues: PC-1354
      Signed-off-by: default avatarNatalie Serrino <nserrino@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10440
      
      GitOrigin-RevId: 2e543d161431c75efe3fe2a85330d6368f8b4ab7
      106936cb
    • Michelle Nguyen's avatar
      PC-1348 Update autocomplete search to be less fuzzy · 61083a41
      Michelle Nguyen authored
      
      Summary:
      Currently, our autocomplete results return matches that are too fuzzy. After some investigation, it is because we are using the ngram analyzer for our search results. For ngrams, elastic typically recommends that the analyzer should only be used in the indexing phase. For the search phase, results will be less fuzzy if we use the standard analyzer.
      Also updated the index to clean up the un-used NS field, and removed some un-used tokenizers/analyzers/etc.
      
      This diff also revs the index.
      
      Test Plan: Deployed to testing cluster, and tested various inputs to see if they return reasonable results.
      
      Reviewers: vihang, nserrino
      
      Reviewed By: vihang
      
      JIRA Issues: PC-1348
      Signed-off-by: default avatarMichelle Nguyen <michellenguyen@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10453
      
      GitOrigin-RevId: 2f784ae64701dbcc4fe24b190cdc9ef0cfcee6ae
      61083a41
    • Michelle Nguyen's avatar
      PC-1308 Deduplicate results in autocomplete · 9ec92ab9
      Michelle Nguyen authored
      
      Summary:
      We currently don't deduplicate results in autocomplete, so if there is statefulset which has restarted with a different UID, it will show up twice. instead, we only want to show the most recent statefulset.
      this diff uses elastic's collapse functionality to deduplicate results, and ranks the resource with the most recent updateVersion at the top.
      
      Test Plan: updated the suggester test to include two resources with the same name. ensure that the resource with the later updateVersion is returned in the results.
      
      Reviewers: nserrino, vihang
      
      Reviewed By: vihang
      
      JIRA Issues: PC-1308
      Signed-off-by: default avatarMichelle Nguyen <michellenguyen@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10428
      
      GitOrigin-RevId: dc3be4f15178d8733996774ba4cea1b1175cf19c
      9ec92ab9
    • Michelle Nguyen's avatar
      Fix bug in cloudConnector where annotations can be a nil map · de9b1609
      Michelle Nguyen authored
      
      Summary: We recently updated cloudConn to add the clusterID to the pod annotations. However, this can be a nil map if the pod has no annotations, and we need to handle that case.
      
      Test Plan: deployed using Skaffold, with a cloudConnector without any preexisting annotations
      
      Reviewers: vihang
      
      Reviewed By: vihang
      Signed-off-by: default avatarMichelle Nguyen <michellenguyen@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10459
      
      GitOrigin-RevId: ecdaeeeb9f2a0328751322b09c8c072e04be06c7
      de9b1609