---
title: Use policies in a production environment
description: After developing and testing policies in external policy decision point (PDP) mode, you can configure PingAuthorize Server for embedded PDP mode for higher environments.
component: pingauthorize
version: 10.1
page_id: pingauthorize:pingauthorize_server_administration_guide:paz_policies_prod_env
canonical_url: https://docs.pingidentity.com/pingauthorize/10.1/pingauthorize_server_administration_guide/paz_policies_prod_env.html
revdate: May 22, 2024
section_ids:
  config_embedded_pdp: Configuring embedded PDP mode
  configuring-embedded-pdp-mode-with-a-deployment-package-store: Configuring embedded PDP mode with a deployment package store
  about-this-task: About this task
  steps: Steps
  choose-from: Choose from:
  configuring-embedded-pdp-mode-with-an-exported-deployment-package: Configuring embedded PDP mode with an exported deployment package
  about-this-task-2: About this task
  steps-2: Steps
  example: Example:
---

# Use policies in a production environment

After developing and testing policies in external policy decision point (PDP) mode, you can configure PingAuthorize Server for embedded PDP mode for higher environments.

You should use embedded PDP mode for production environments because it is considerably more performant for authorization decisions. This performance boost happens because in embedded PDP mode, PingAuthorize Server doesn't need to call out to the Policy Editor.

When configured to use embedded PDP mode, a policy file called a deployment package is used in PingAuthorize Server's internal policy engine, which then handles all policy requests. The deployment package can be loaded into the server in two ways:

* The deployment package is exported from the Policy Editor and loaded into the internal policy engine by an administrator.

* The deployment package is deployed to a deployment package store, which is read by the internal policy engine for updates at a configurable interval.

  |   |                                                                                                                                    |
  | - | ---------------------------------------------------------------------------------------------------------------------------------- |
  |   | If you anticipate some policy changes in production, consider using this method instead of the exported deployment package method. |

## Configuring embedded PDP mode

On the following tabs, learn how to configure PingAuthorize Server to use embedded PDP mode and assign to the Policy Decision Service either:

* A deployment package store using the Deployment Manager functionality

* An exported deployment package

- Deployment package store

- Exported deployment package

## Configuring embedded PDP mode with a deployment package store

### About this task

Follow these steps to assign a deployment package store to the Policy Decision Service and set the policy decision point (PDP) mode to embedded.

|   |                                                                                                                                                                              |
| - | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|   | Learn more about the deployment package store option and the requirements for the Deployment Manager feature in [Using the Deployment Manager](paz_deployment_manager.html). |

### Steps

* Use `dsconfig` or the administrative console:

  #### Choose from:

  * Run `dsconfig` with the `set-policy-decision-service-prop` option.

    ```
    dsconfig set-policy-decision-service-prop \
    --set pdp-mode:embedded \
    --set deployment-package-source-type:store \
    --set deployment-package-store:<name of the store>
    ```

  * Use the administrative console.

    1. In the administrative console, go to **Configuration > Authorization and Policies > Policy Decision Service**.

    2. On the **Edit Policy Decision Service** page, complete the **General Configuration** fields.

       ![Screen capture of the General Configuration section of the Edit Policy Decision Service page, showing PDP Mode set to embedded and Deployment Package Source Type to store](_images/yar1672270967053.png)

    3. In the **Deployment Package Store Configuration** section, in the **Deployment Package Store** list, select your deployment package store.

    4. In the **Policy Request Configuration** section, select a **Trust Framework Version**.

    5. Click **Save To PingAuthorize Server Cluster**.

## Configuring embedded PDP mode with an exported deployment package

### About this task

To assign an exported deployment package to the Policy Decision Service and set the PDP mode:

### Steps

* Run `dsconfig` with the `set-policy-decision-service-prop` option.

  #### Example:

  In this example, the `deployment-package` value is the full path to a deployment package file. To create a deployment package for export, see [Exporting a policy deployment package](paz_export_deployment_package.html).

  ```
  dsconfig set-policy-decision-service-prop \
    --set pdp-mode:embedded \
    --set "deployment-package</path/to/my-deployment-package.deploymentpackage"
  ```
