palantir-cost-tuning

Featured

Optimize Palantir Foundry costs through compute tuning, incremental builds, and usage monitoring. Use when analyzing Foundry compute costs, reducing API usage, or implementing cost monitoring for Foundry workloads. Trigger with phrases like "palantir cost", "foundry billing", "reduce foundry costs", "foundry pricing", "foundry expensive".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Palantir Cost Tuning ## Overview Optimize Foundry compute and API costs through incremental transforms, right-sized Spark profiles, efficient pagination, and usage monitoring. ## Prerequisites - Active Foundry enrollment with build history - Access to Foundry resource usage metrics - Understanding of transform build patterns ## Instructions ### Step 1: Cost Drivers in Foundry | Cost Category | Driver | Optimization | |---------------|--------|-------------| | Compute | Full rebuilds of large transforms | Use `@incremental()` | | Compute | Oversized Spark profiles | Right-size `@configure` profiles | | Storage | Redundant dataset snapshots | Configure retention policies | | API | High-frequency polling | Use webhooks instead | | API | Small page sizes | Use max page_size (500) | ### Step 2: Convert Full Rebuilds to Incremental ```python from transforms.api import transform_df, Input, Output, incremental # BEFORE: Full rebuild every run (expensive for large datasets) @transform_df(Output("/out"), data=Input("/in")) def expensive(data): return data.filter(data.status == "active") # AFTER: Only processes new/changed rows @incremental() @transform_df(Output("/out"), data=Input("/in")) def cheap(data): return data.filter(data.status == "active") ``` ### Step 3: Right-Size Spark Profiles ```python from transforms.api import configure # DON'T: Default profile for everything # DO: Match profile to actual data size # Small data (< 1GB) — use lightweight transforms (...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category